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
-
A CVE-MITRE-CISA-CNA Extravaganza
by
Nibbled To Death By Ducks
3 hours, 36 minutes ago -
Sometimes I wonder about these bots
by
Susan Bradley
10 hours, 28 minutes ago -
Does windows update component store “self heal”?
by
Mike Cross
16 hours, 33 minutes ago -
Windows 11 Insider Preview build 27858 released to Canary
by
joep517
17 hours, 33 minutes ago -
Pwn2Own Berlin 2025: Day One Results
by
Alex5723
16 hours, 58 minutes ago -
Windows 10 might repeatedly display the BitLocker recovery screen at startup
by
Susan Bradley
13 hours, 28 minutes ago -
Windows 11 Insider Preview Build 22631.5409 (23H2) released to Release Preview
by
joep517
20 hours, 15 minutes ago -
Windows 10 Build 19045.5912 (22H2) to Release Preview Channel
by
joep517
20 hours, 16 minutes ago -
Kevin Beaumont on Microsoft Recall
by
Susan Bradley
8 hours, 50 minutes ago -
The Surface Laptop Studio 2 is no longer being manufactured
by
Alex5723
1 day, 4 hours ago -
0Patch, where to begin
by
cassel23
22 hours, 26 minutes ago -
CFPB Quietly Kills Rule to Shield Americans From Data Brokers
by
Alex5723
1 day, 18 hours ago -
89 million Steam account details just got leaked,
by
Alex5723
1 day, 5 hours ago -
KB5058405: Linux – Windows dual boot SBAT bug, resolved with May 2025 update
by
Alex5723
2 days, 2 hours ago -
A Validation (were one needed) of Prudent Patching
by
Nibbled To Death By Ducks
1 day, 17 hours ago -
Master Patch Listing for May 13, 2025
by
Susan Bradley
1 day, 4 hours ago -
Installer program can’t read my registry
by
Peobody
1 hour, 39 minutes ago -
How to keep Outlook (new) in off position for Windows 11
by
EspressoWillie
1 day, 15 hours ago -
Intel : CVE-2024-45332, CVE-2024-43420, CVE-2025-20623
by
Alex5723
1 day, 22 hours ago -
False error message from eMClient
by
WSSebastian42
2 days, 13 hours ago -
Awoke to a rebooted Mac (crashed?)
by
rebop2020
2 days, 22 hours ago -
Office 2021 Perpetual for Mac
by
rebop2020
3 days ago -
AutoSave is for Microsoft, not for you
by
Will Fastie
2 hours, 34 minutes ago -
Difface : Reconstruction of 3D Human Facial Images from DNA Sequence
by
Alex5723
3 days, 3 hours ago -
Seven things we learned from WhatsApp vs. NSO Group spyware lawsuit
by
Alex5723
10 hours, 56 minutes ago -
Outdated Laptop
by
jdamkeene
3 days, 8 hours ago -
Updating Keepass2Android
by
CBFPD-Chief115
3 days, 14 hours ago -
Another big Microsoft layoff
by
Charlie
3 days, 14 hours ago -
PowerShell to detect NPU – Testers Needed
by
RetiredGeek
16 hours, 10 minutes ago -
May 2025 updates are out
by
Susan Bradley
17 hours, 52 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.