Stumped on a simple formula. Need help

mdean32

New Member
Joined
Jan 15, 2019
Messages
22
What formula could I use that would locate the first numeric value for Part A,B,C, and then give the correct date in which the first numeric value was located? Example, if I wanted to know the due date of Part C, how would I get the formula to return 4/22? Part B to return 4/20? etc Thank you in advance


Part4/184/194/204/214/22
A2
B3
C5
 
So I assume there is no way to always get the first numerical value in a row instead of the last for the above spreadsheet?

Do you want the first value greater than 0 ?
If there are more conditions it is convenient that you put the possible cases and the possible results.

Try the folowing array formula:

Dante Amor
ABCDEFGHIJKLMNOPQRSTU
1MaterialOH InvPast Due8-Apr9-Apr10-Apr11-Apr12-Apr13-Apr14-Apr15-Apr16-Apr17-Apr18-Apr19-Apr20-Apr21-Apr22-Aprpdnext 5Due Date
2119825083M060600Past Due
3KE22207645M04040012-Apr
4116600122002M0918270Past Due
5116600122008M-232302313-Apr
6116600122011M23477500477500OH Inv
Hoja12
Cell Formulas
RangeFormula
U2:U6U2=INDEX($B$1:$R$1,,SMALL(IF(B2:R2>0,COLUMN(B2:R2)),1)-1)
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.
 
Upvote 0

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
So I assume there is no way to always get the first numerical value in a row instead of the last for the above spreadsheet?
You need to tweak the formula so it respects your columns (range) used.
Following new example of data it becomes =INDEX($D$1:$R$1,AGGREGATE(15,6,(COLUMN($D$1:$R$1)-3)/(D2:R2>0),1)).
 
Upvote 0

Forum statistics

Threads
1,214,990
Messages
6,122,626
Members
449,094
Latest member
bsb1122

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