I’ve tried everything I can think of and just can’t figure this out. I have a numeric value that I need to compare to the value in 2 different columns. It must be >= the value in the first column and < the value in the second column. Once I've found that, I need to return a value in that same row, but from which column would be contingent on matching yet another value. Can anyone help with this….or does it even make sense? I can supply a snippet of data as needed.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Multiple Parameters
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Multiple Parameters
- This topic has 8 replies, 3 voices, and was last updated 15 years, 2 months ago.
Viewing 7 reply threadsAuthorReplies-
WSsquenson
AskWoody Lounger -
WSPattik
AskWoody LoungerFebruary 20, 2010 at 10:07 am #1210319Here’s small sample of data. Bottom line is the Value in A3 has to be between the values in columns E and F, >= E and less than F. Once those cells/row is found, the value returned will be based on where a match is found to B2 looking at G2:Q2.
Since A3 = 247.75, the >= and < figures would be found in E12 and F12, so the row for the return value would be 12. The column the value is returned from will be based on where the value in B2 (in this case 3) is found in G2:Q2. Since 3is found in cell J2, the return value should be 45 from cell J12.
Hope this helps. I tried to apply the formula you entered and still couldn't make it work.
-
WSsquenson
AskWoody LoungerFebruary 20, 2010 at 10:32 am #1210326I now have a better understanding.
I will put in A3: =MATCH(A2,E2:E12,1)-1
And in B3: =MATCH(B2,G2:Q2,0)
And in C3: =INDEX(G3:Q12,A3,B3)Please let me know if it answers your question. If you want to test for #N/A, you will have to use an IF(ISNA(MATCH(B2,G2:Q2,0)),”no B match”,MATCH(B2,G2:Q2,0))
-
WSPattik
AskWoody LoungerFebruary 20, 2010 at 10:59 am #1210339It almost answers the question. I did what you said and it returns 44. From what I can disect in the formulas it looks like you checked if A2 were less than the values in column E, then based on where B2 was found in G2:Q2, you returned 44.
The thing is the value in A2 (247.75) has to be equal to or greater that a value in column E…..AND it must be less than the corresponding value in column F. In this case that would fall under row 12, so it should return 45. Sorry to be so thick, but for future reference, can you tell me what the -1 means at the end of the formuala =MATCH(A2,E2:E12,1)-1? I’m close to understanding, but not quite there yet. Thanks for the patience.
-
WSsdckapr
AskWoody Lounger -
WSPattik
AskWoody LoungerFebruary 20, 2010 at 12:29 pm #1210351Works perfectly, thanks! I would like to understand this so I can apply it to other situations. In the Match portion of the formula, if a match type is not specified, is the default the next higher number found? And in the B2+1 portion, why do you need +1?
Thanks again – I always get great info from loungers.
-
WSsdckapr
AskWoody LoungerFebruary 20, 2010 at 2:08 pm #1210361If no match type is specified it defaults to finding the value less than or equal to the lookup value. Thus in your example the “match row” found is for the value row with 140 in Col B. The formula adjusts for this by starting the index range 1 row down…
I used B2 +1 since the index starts with 1 and your columns start with a zero so the “index column” needed is 1 more than the value in B2
Steve
-
WSPattik
AskWoody Lounger
Viewing 7 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Privacy and the Real ID
by
Susan Bradley
19 minutes ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
8 hours, 30 minutes ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
10 hours, 20 minutes ago -
Upgrading from Win 10
by
WSjcgc50
3 hours, 38 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
2 hours, 24 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
22 hours, 57 minutes ago -
The story of Windows Longhorn
by
Cybertooth
10 hours, 42 minutes ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
1 day ago -
Are manuals extinct?
by
Susan Bradley
4 hours, 56 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
1 day, 10 hours ago -
Network Issue
by
Casey H
21 hours, 9 minutes ago -
Fedora Linux is now an official WSL distro
by
Alex5723
1 day, 22 hours ago -
May 2025 Office non-Security updates
by
PKCano
1 day, 22 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
2 days ago -
pages print on restart (Win 11 23H2)
by
cyraxote
1 day, 1 hour ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
2 days, 2 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
2 days, 2 hours ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
2 days, 9 hours ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
1 day, 2 hours ago -
Asking Again here (New User and Fast change only backups)
by
thymej
2 days, 21 hours ago -
How much I spent on the Mac mini
by
Will Fastie
4 hours, 46 minutes ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
1 day ago -
Spring cleanup — 2025
by
Deanna McElveen
3 days, 3 hours ago -
Setting up Windows 11
by
Susan Bradley
1 day, 22 hours ago -
VLC Introduces Cutting-Edge AI Subtitling and Translation Capabilities
by
Alex5723
2 days, 22 hours ago -
Powershell version?
by
CWBillow
2 days, 23 hours ago -
SendTom Toys
by
CWBillow
1 day, 10 hours ago -
Add shortcut to taskbar?
by
CWBillow
3 days, 3 hours ago -
Sycophancy in GPT-4o: What happened
by
Alex5723
3 days, 19 hours ago -
How can I install Skype on Windows 7?
by
Help
3 days, 18 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.