first column with data

CAexcelguru

New Member
Joined
May 9, 2009
Messages
6
Help!!
I am trying to find a formula, not vba, that will tell me the first column with data in it. For example, I have weeks across the top in columns I to U, weeks 1 in Column 1, to week 13 in Column U. In column F I have dates of when a product was first advertised and in columns I to U there is a $number from the first week an item was sold. In some rows, I have, for example, 0 in column I and J and $50 in column K or U. I want a formula that will tell me the column with the first value in it. I have 1000s of rows and I want to see for each row the first week a item was sold.

help appreciated.

I should add, I have tried MATCH(9.99999999999999E+307,I6:U6) but it returns the last column (U) with a value, not the first column (I)
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
I want a formula that will tell me the column with the first value in it.

This is an array formula, confirm it with CTRL-SHIFT-ENTER...then copy down. It will tell you the column where the first value appears.

Excel Workbook
IJKLMNOPQRSTUV
20050505000000000K
30004030120000000L
400000040000000O
Sheet30
 
Upvote 0
If all the prior column are filled with zeros (not blanks) then try this:
=MATCH(0,I6:U6)+1
 
Upvote 0
Help!!
I am trying to find a formula, not vba, that will tell me the first column with data in it. For example, I have weeks across the top in columns I to U, weeks 1 in Column 1, to week 13 in Column U. In column F I have dates of when a product was first advertised and in columns I to U there is a $number from the first week an item was sold. In some rows, I have, for example, 0 in column I and J and $50 in column K or U. I want a formula that will tell me the column with the first value in it. I have 1000s of rows and I want to see for each row the first week a item was sold.

help appreciated.

I should add, I have tried MATCH(9.99999999999999E+307,I6:U6) but it returns the last column (U) with a value, not the first column (I)

A small sample with the expected result would be helpful... That said:

Control+shift+enter, not just enter...

=INDEX(I6:U6,MATCH(TRUE,ISNUMBER(I6:U6),0))

would yield the first numeric value (even if zero) from I6:U6.

Control+shift+enter, not just enter...

=INDEX(I6:U6,MATCH(1,IF(ISNUMBER(I6:U6),IF(I6:U6>0,1)),0))

will yield the first non-zero value.
 
Upvote 0
Thank you ALL.

I ended up using the post from jbeaucaire and it worked very, very well. Question, apologize if this is obvious to all, why is the solution an array and not a straight formula?

Thank you all again for your help.
 
Upvote 0

Forum statistics

Threads
1,222,905
Messages
6,168,949
Members
452,227
Latest member
sam1121

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