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.
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
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, 3 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
-
Rufus is available from the MSFT Store
by
PL1
1 hour, 18 minutes ago -
Microsoft : Ending USB-C® Port Confusion
by
Alex5723
3 hours, 27 minutes ago -
KB5061768 update for Intel vPro processor
by
drmark
1 hour, 9 minutes ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
1 hour, 38 minutes ago -
My Simple Word 2010 Macro Is Not Working
by
mbennett555
18 hours, 39 minutes ago -
Office gets current release
by
Susan Bradley
1 hour, 50 minutes ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
1 day, 15 hours ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
1 day ago -
Stop the OneDrive defaults
by
CWBillow
1 day, 16 hours ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
2 days, 2 hours ago -
X Suspends Encrypted DMs
by
Alex5723
2 days, 4 hours ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
2 days, 5 hours ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
2 days, 5 hours ago -
OpenAI model sabotages shutdown code
by
Cybertooth
2 days, 6 hours ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
1 day, 18 hours ago -
Enabling Secureboot
by
ITguy
2 days, 1 hour ago -
Windows hosting exposes additional bugs
by
Susan Bradley
2 days, 14 hours ago -
No more rounded corners??
by
CWBillow
2 days, 10 hours ago -
Android 15 and IPV6
by
Win7and10
1 day, 23 hours ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
3 days, 2 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
3 days, 5 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
2 days, 23 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
3 days, 12 hours ago -
May preview updates
by
Susan Bradley
3 days ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
2 days, 15 hours ago -
Just got this pop-up page while browsing
by
Alex5723
3 days, 4 hours ago -
KB5058379 / KB 5061768 Failures
by
crown
3 days, 1 hour ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
2 days, 4 hours ago -
At last – installation of 24H2
by
Botswana12
4 days, 4 hours ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
2 hours, 6 minutes 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.