not so excel-lent
New Member
- Joined
- Jul 3, 2008
- Messages
- 14
Excel 2007 (Windows XP)
This is probably a simple fix, but I can't figure it out.
I have 20 rows on a spreadsheet. I will be entering data in column B and I want column A to count column B if there is data (anything) entered in column B.
I want the count in each cell to increase by one each time a new cell is counted. For instance, if there is data in B3, B5, B7, B12 then A3 should show 1, A5 should show 2, A7 should show 3, and A12 should show 4.
Here is the formula I'm using:
=IF(B1="","",COUNT(B1))
=IF(B2="","",COUNT(B1:B2))
=IF(B3="","",COUNT(B1:B3))
and so on...
The formula works as long as I format the cells in column B as General and only use numbers as my data in column B. However, if I format them as Text, it doesn't work. I'm using alphanumeric data in column B so I need to format as Text, right?
Any suggestions?
Thanks in advance for your help!
This is probably a simple fix, but I can't figure it out.
I have 20 rows on a spreadsheet. I will be entering data in column B and I want column A to count column B if there is data (anything) entered in column B.
I want the count in each cell to increase by one each time a new cell is counted. For instance, if there is data in B3, B5, B7, B12 then A3 should show 1, A5 should show 2, A7 should show 3, and A12 should show 4.
Here is the formula I'm using:
=IF(B1="","",COUNT(B1))
=IF(B2="","",COUNT(B1:B2))
=IF(B3="","",COUNT(B1:B3))
and so on...
The formula works as long as I format the cells in column B as General and only use numbers as my data in column B. However, if I format them as Text, it doesn't work. I'm using alphanumeric data in column B so I need to format as Text, right?
Any suggestions?
Thanks in advance for your help!