Here's a non-VBA way. I had cells that didn't match your criteria ("4") return the text value of "not 4", so you would see results instead of blanks. You can replace the "not 4" with "", if you'd rather not see anything for non-matches
You can do it down a column, but you'll have to use 2 formulas and drag down the number of cells that your values go across (since you are going from a2:z2, you'd have to drag the second formula down to include 25 cells--the first formula handles the first potential match, for a total of 26
Note: I've chosen A5 arbitrarily as the location of the first formula
The first one
=IF(A2=4,COLUMN(A2),"not four"
For all the other cells, assuming the above formula is in cell A5
=IF(OFFSET(A$2,0,(COUNTA($A$5:A5)))=4,COLUMN(OFFSET(A$2,0,(COUNTA($A$5:A5)))),"not 4"
t
----- ianripping > wrote: ----
In row 2 from A to Z I have numbers from 1 to 12
Some numbers appear more than once, sometime 4 times
I want to have an equation that will be able to look through the ro
and pic out all of the cells which have the number 4 and return thei
column number
Any ideas