IF LOOKUP VALUE IS GREATER THAN ONE NUMBER FROM MULTIPLE MATCHES

mechrobin

New Member
Joined
Nov 22, 2020
Messages
20
Office Version
  1. 365
Platform
  1. Windows
HI Folks,

I want to get the result as "Shopped" if my lookup value result is greater than 800 from multiple matches. For eg

My lookup values are;
100001-AMR-0004-01
1-NS-62001-2110

Below is my lookup table and if all the values of "last status" colum is greater than 800 then result should be "Shipped"

Engineering DrawingLast Status
100001-AMR-0004-01860
100001-AMR-0004-01860
100001-AMR-0004-01860
100001-AMR-0004-01860
1-NS-62001-2110830
1-NS-62001-2110783
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
if all the values of "last status" colum is greater than 800 then result should be "Shipped"
Otherwise the result should be ....?

See if this helps

21 10 09.xlsm
ABCDEF
1My lookup values are;StatusEngineering DrawingLast Status
2100001-AMR-0004-01Not Shipped100001-AMR-0004-01860
31-NS-62001-2110100001-AMR-0004-01860
4100001-AMR-0004-01860
5100001-AMR-0004-01860
61-NS-62001-2110830
71-NS-62001-2110783
Status
Cell Formulas
RangeFormula
B2B2=IF(MIN(FILTER(F2:F7,ISNUMBER(MATCH(E2:E7,A2:A3,0)),0))>800,"Shipped","Not Shipped")
 
Upvote 0
Otherwise the result should be ....?

See if this helps

21 10 09.xlsm
ABCDEF
1My lookup values are;StatusEngineering DrawingLast Status
2100001-AMR-0004-01Not Shipped100001-AMR-0004-01860
31-NS-62001-2110100001-AMR-0004-01860
4100001-AMR-0004-01860
5100001-AMR-0004-01860
61-NS-62001-2110830
71-NS-62001-2110783
Status
Cell Formulas
RangeFormula
B2B2=IF(MIN(FILTER(F2:F7,ISNUMBER(MATCH(E2:E7,A2:A3,0)),0))>800,"Shipped","Not Shipped")
Hi Peter,

Thanks for the reply.

But it's not working for me. As you can see from your result, B2 value should be "Shipped" since all values are greater than 800.
 
Upvote 0
OK, I thought you wanted check all the lookup values at once. Try this instead.

21 10 09.xlsm
ABCDEF
1My lookup values are;StatusEngineering DrawingLast Status
2100001-AMR-0004-01Shipped100001-AMR-0004-01860
31-NS-62001-2110Not Shipped100001-AMR-0004-01860
4100001-AMR-0004-01860
5100001-AMR-0004-01860
61-NS-62001-2110830
71-NS-62001-2110783
Status
Cell Formulas
RangeFormula
B2:B3B2=IF(MIN(FILTER(F$2:F$7,ISNUMBER(MATCH(E$2:E$7,A2,0)),0))>800,"Shipped","Not Shipped")
 
Upvote 0
OK, I thought you wanted check all the lookup values at once. Try this instead.

21 10 09.xlsm
ABCDEF
1My lookup values are;StatusEngineering DrawingLast Status
2100001-AMR-0004-01Shipped100001-AMR-0004-01860
31-NS-62001-2110Not Shipped100001-AMR-0004-01860
4100001-AMR-0004-01860
5100001-AMR-0004-01860
61-NS-62001-2110830
71-NS-62001-2110783
Status
Cell Formulas
RangeFormula
B2:B3B2=IF(MIN(FILTER(F$2:F$7,ISNUMBER(MATCH(E$2:E$7,A2,0)),0))>800,"Shipped","Not Shipped")
I'm So sorry. Don't know whether it's my mistake or not; because I'm getting all the results as "Not Shipped"

This is how I changed the formula.
=IF(MIN(FILTER('[JDE 09.10.2021.xlsb]Sheet1'!$K$1:$K$159294,ISNUMBER(MATCH('[JDE 09.10.2021.xlsb]Sheet1'!$F$1:$F$159294,D3,0)),0))>800,"Shipped","Not Shipped")
 
Upvote 0
Provided ..
- Your lookup value is in D3 of the formula sheet
- Drawing codes are in col F of the JDE workbook
- Status numbers are in col K of the JDE workbook
.. then you have adjusted the formula correctly.
In that case, the likely problem is that the Status numbers are actually text, not numbers. You could check in that JDE workbook sheet with a formula like this
=ISNUMBER(K2)

If that returns FALSE, then try this adjustment to the formula

=IF(MIN(FILTER('[JDE 09.10.2021.xlsb]Sheet1'!$K$1:$K$159294,ISNUMBER(MATCH('[JDE 09.10.2021.xlsb]Sheet1'!$F$1:$F$159294,D3,0)),0)+0)>800,"Shipped","Not Shipped")
 
Upvote 0
Solution
Provided ..
- Your lookup value is in D3 of the formula sheet
- Drawing codes are in col F of the JDE workbook
- Status numbers are in col K of the JDE workbook
.. then you have adjusted the formula correctly.
In that case, the likely problem is that the Status numbers are actually text, not numbers. You could check in that JDE workbook sheet with a formula like this
=ISNUMBER(K2)

If that returns FALSE, then try this adjustment to the formula

=IF(MIN(FILTER('[JDE 09.10.2021.xlsb]Sheet1'!$K$1:$K$159294,ISNUMBER(MATCH('[JDE 09.10.2021.xlsb]Sheet1'!$F$1:$F$159294,D3,0)),0)+0)>800,"Shipped","Not Shipped")
Hi Peter,

Sorry for the delay in reply. This worked.

Thank you :)
 
Upvote 0
You're welcome. Thanks for letting us know. :)
 
Upvote 0

Forum statistics

Threads
1,215,831
Messages
6,127,142
Members
449,363
Latest member
Yap999

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top