1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: Sequential Number if Cell Contains Text

Discussion in 'Business Applications' started by deastew, Jan 22, 2013.

Thread Status:
Not open for further replies.
Advertisement
  1. deastew

    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!
     
  2. etaf

    etaf Moderator

    Joined:
    Oct 2, 2003
    Messages:
    65,412
    First Name:
    Wayne
    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
     

    Attached Files:

  3. deastew

    deastew Thread Starter

    Joined:
    Dec 5, 2012
    Messages:
    14
    Thank you. That worked!!! :)
     
  4. etaf

    etaf Moderator

    Joined:
    Oct 2, 2003
    Messages:
    65,412
    First Name:
    Wayne
    your welcome (y) thanks for letting us know
     
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 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1086433

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice