excel formula to find first cell with value in row

NORRILLOUS

New Member
Joined
Apr 10, 2014
Messages
36
Office Version
  1. 365
Platform
  1. Windows
I have been looking through the forums but haven't found what I'm looking for exactly.
S​
T​
U​
V​
W​
X​
Ship DateShip DateShip DateShip DateShip DateShip Date
3/29/2021​
3/30/2021​
3/31/2021​
4/1/2021​
4/2/2021​
4/5/2021​
-960,000-240,000--

Above I am showing what my spread sheet looks like, I am trying to look at the bottom row and find the first number >0 and return the ship date above it. So for the example above it would find the number "960,000" and return "3/30/21"

I have figured out how to find the number but I don't know how to change the return value. (Code Below)
Excel Formula:
=IF(R3=0,0,INDEX(S3:X3,MATCH(TRUE,S3:X3>0,0)))
 
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Depending on your version of excel, see if either of these work for you
Excel Formula:
=MINIFS(S2:X2,S3:X3,">0")
Excel Formula:
=AGGREGATE(15,6,S2:X2/SIGN(S3:X3),1)
Acutally the
Excel Formula:
=MINIFS(S2:X2,S3:X3,">0")
option works flawlessly, how do I get around the "-" issue though?
 
Upvote 0
Are you typing in the dash or using custom formatting for a 0 to show as a -? The latter should enable this to work.
 
Upvote 0
It should still work either way, the *IFS functions ignore text when the criteria is numeric so it should only be picking up +ve numeric values, nothing else.

That said, the numbers are left aligned, indicating that they could actually be text strings instead of valid numbers.

Try this one, possibly needs to be array confirmed with Ctrl Shift Enter if not using office 365 with dynamic arrays.
Excel Formula:
=AGGREGATE(15,6,S2:X2/SIGN(S3:X3+0),1)
 
Upvote 0
Book1
PQRSTUVW
1Ship DateShip DateShip DateShip DateShip Date
23/29/20213/30/20213/31/20214/1/20214/2/2021
33/30/2021<<<<<A Value in R_960,000_240,000_
4
Sheet8
Cell Formulas
RangeFormula
P3P3=IF(R3=0,0,INDEX(S2:X2,MATCH(TRUE,ISNUMBER(S3:X3),0)))
Press CTRL+SHIFT+ENTER to enter array formulas.


With the formula typed in the Formula Bar and your cursor still in the Formula bar, hold down the Ctrl and Shift keys at the same time as you hit Return.
That will then enclose the formula in curly braces. { } and create an Array Formula. (Do not just try and type the Curly Braces). If you edit the formula you will need to always re-enter with Ctrl Shift Enter.
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,849
Members
449,051
Latest member
excelquestion515

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