Hello,
I was hoping somebody could help me with a formula...
I have two columns A (where values may be entered) and B. I need a formula to enter in cells of column B that will return the following values:
If the cell A* is the first non-blank cell in the range A1:A100 then return a value "X" in column B of the same row, if cell A* is not the first non-blank cell then return a value "Y", and if the cell A* is blank, return blank ("").
Thanks in advance for your help!
Last edited by galaxy_madness; 11-25-2011 at 03:31 PM.
Try this formula in B1 copied down
=IF(A1="","",IF(COUNTA(A$1:A1)=1,"x","y"))
Audere est facere
deleted...
Last edited by Haseeb A; 11-24-2011 at 06:18 PM. Reason: Missunderstood OP's post
HTH; Haseeb
If your problem is solved, please say so clearly, and mark your thread as Solved:
Forum Rules & How to Mark a thread as SOLVED
It should work if the "blank" cells are truly blank - do they contain formulas?
If so perhaps try this version instead
=IF(A1="","",IF(COUNTIF(A$1:A1,"<>")=1,"x","y"))
Audere est facere
When you say "first" - I was assuming you meant positionally? Do you or do you mean "first" chronologically, i.e. the first entry you make timewise?
My suggestion works positionally, for example.....
....if you enter "apple" in A4 then B4 will display "x". If you then enter "banana" in A6 then B6 will show "y" (and B4 will still be "x"). Any further entries below A4 will be marked with a "y" too. If you enter a value in A3 now then that is now the first entry (positionally) so B3 will now be "x" and B4 will become "y".
Is that how you would like it to work?
Audere est facere
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks