Solved: Sequential Number if Cell Contains Text

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

deastew

Thread Starter
Joined
Dec 5, 2012
Messages
14
I would like to assign a sequential number in Column A if a cell in Column B contains text.

I used the following formula but it did not work:

=IF(ISTEXT(B26),"",COUNTA(B26:B26))

In essence, I want the following:
Row Column A Column B
1 1 True
6 2 True
8 3 True

Can anyone help?

Thanks!
 

etaf

Wayne
Moderator
Joined
Oct 2, 2003
Messages
65,474
there maybe a better way to do this

Assume the data starts in A2 and B2

in A2 put
=IF(OR(ISTEXT(B2),B2=""),MAX($A$1:A1)+1,"")
and copy down

see attached
 

Attachments

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top