Index Match Negative Number and Pull Date

mediumraresteak

New Member
Joined
Jan 14, 2016
Messages
13
Hi Everyone,

I can't figure this out and I wonder if IndexMatch is the wrong formula. I'm trying to find two results: 1) Pull the first negative for specific SKU and 2) Pull the corresponding date.

Results should be as below:
SKUDateShortage
Hat8/1/21-20
Bike--
Shoe--

Data Dump:
DateSKUBalance
7/16/21Hat5
7/20/21Bike10
7/30/21Shoe15
8/1/21Hat-20
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
The formula below pulls the first negative number and gives me the corresponding date, but doesn't look for the specific sku. Same issue with finding the first negative line as it doesn't look based on the SKU.
=INDEX(A:A,MATCH(TRUE,INDEX(C:C<0,0,1),0))
 
Upvote 0
Please Update your Account Details and save it to we know what version of Excel & OS you used & then we can help better based on.
Try these formulas with CTRL+SHIFT+ENTER
Book1
ABCDEFGH
1DateSKUBalance
27/16/2021Hat5Hat8/1/2021-20
37/20/2021Bike10Bike8/9/2021-8
47/30/2021Shoe15Shoe8/5/2021-3
58/1/2021Hat-20
68/3/2021Bike8
78/5/2021Shoe-3
88/7/2021Hat-12
98/9/2021Bike-8
108/11/2021Shoe6
118/13/2021Hat4
128/15/2021Bike12
138/17/2021Shoe-10
14
Sheet2
Cell Formulas
RangeFormula
F2:F4F2=INDEX($A$2:$C$13,MATCH(1,($B$2:$B$13=E2)*($C$2:$C$13<0),0),1)
G2:G4G2=INDEX($A$2:$C$13,MATCH(1,($B$2:$B$13=$E2)*($C$2:$C$13<0),0),3)
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Solution
1) Pull the first negative for specific SKU
I would ask:
1st negative from the top?
or maybe do mean minimum negative value?
or first negative from the end?

ur data sample is very small and thus those questions.
 
Upvote 0
Please Update your Account Details and save it to we know what version of Excel & OS you used & then we can help better based on.
Try these formulas with CTRL+SHIFT+ENTER
Book1
ABCDEFGH
1DateSKUBalance
27/16/2021Hat5Hat8/1/2021-20
37/20/2021Bike10Bike8/9/2021-8
47/30/2021Shoe15Shoe8/5/2021-3
58/1/2021Hat-20
68/3/2021Bike8
78/5/2021Shoe-3
88/7/2021Hat-12
98/9/2021Bike-8
108/11/2021Shoe6
118/13/2021Hat4
128/15/2021Bike12
138/17/2021Shoe-10
14
Sheet2
Cell Formulas
RangeFormula
F2:F4F2=INDEX($A$2:$C$13,MATCH(1,($B$2:$B$13=E2)*($C$2:$C$13<0),0),1)
G2:G4G2=INDEX($A$2:$C$13,MATCH(1,($B$2:$B$13=$E2)*($C$2:$C$13<0),0),3)
Press CTRL+SHIFT+ENTER to enter array formulas.
Thank you!
 
Upvote 0

Forum statistics

Threads
1,215,640
Messages
6,125,976
Members
449,276
Latest member
surendra75

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