+ Reply to Thread
Results 1 to 4 of 4

Auto generate number in cell

  1. #1
    Registered User
    Join Date
    11-06-2015
    Location
    England
    MS-Off Ver
    2013
    Posts
    6

    Auto generate number in cell

    Is it possible to get a number auto generated in a cell based on text entered in another cell?

    ie. I enter text in B2 (it can be anything) and this will then generate a number in C2 e.g. 1

    I am basically wanting to detail a list of issues but this generate a number so that I can then total up the number of issues I have logged

    Thanks for any help you can give me

    SSGDSG

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: Auto generate number in cell

    =IF(B2<>"",1,"")

    and copy down???
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,737

    Re: Auto generate number in cell

    Put this formula in C2:

    =IF(B2="","",ROWS($1:1))

    then copy down. It will appear blank until you enter something in column B. To get the total number of issues, put this formula in D2:

    =MAX(C:C)

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    11-06-2015
    Location
    England
    MS-Off Ver
    2013
    Posts
    6

    Thumbs up Re: Auto generate number in cell

    Glenn and Pete

    Thank you very much indeed for your help. Works a treat

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Generate Auto Number Using VBA
    By stoicy in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 04-02-2016, 07:44 PM
  2. [SOLVED] VBA Auto Generate Next Number
    By sagar007 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-22-2013, 12:05 PM
  3. Excel 2007 : Auto Generate Next Number
    By wisedave in forum Excel General
    Replies: 6
    Last Post: 05-11-2011, 10:36 AM
  4. Auto Generate NUmber
    By Mooseman60 in forum Excel General
    Replies: 1
    Last Post: 10-03-2010, 10:52 AM
  5. auto generate number
    By kryt0n in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-23-2010, 07:52 AM
  6. number to auto-generate
    By dsammons3 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-28-2007, 03:48 PM
  7. Auto generate number???
    By iluminatae in forum Excel General
    Replies: 9
    Last Post: 02-11-2007, 07:43 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1