+ Reply to Thread
Results 1 to 9 of 9

Numbering column with IF function

  1. #1
    Registered User
    Join Date
    07-07-2015
    Location
    Brisbane
    MS-Off Ver
    2010
    Posts
    8

    Numbering column with IF function

    Hello,

    I am trying to create an auto generating number column to populate if something is entered in Column D. Column D is a drop down menu, you can select option A, Option B or Option C. I want the number to go 1 to 10 for each option (30 rows all up).

    This is kind of where I was heading with it, but it's not working

    Please Login or Register  to view this content.
    Thanks!

  2. #2
    Valued Forum Contributor
    Join Date
    08-22-2011
    Location
    Auckland
    MS-Off Ver
    Excel 2019
    Posts
    716

    Re: Numbering column with IF function

    Hi Cchoma
    Is this the sort of thing you mean? I put none in the value if false.
    Please Login or Register  to view this content.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Numbering column with IF function

    What am I missing here, all those formulas are the same?
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    07-07-2015
    Location
    Brisbane
    MS-Off Ver
    2010
    Posts
    8

    Re: Numbering column with IF function

    Thanks PhilB1 - it only stays as 'none' though, it doesnt seem to be adding +1 to numbers - do you suggest anything else?

    Ford - if function goes M9, M10 and M10 in the formulas

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Numbering column with IF function

    Quote Originally Posted by Cchoma View Post
    Ford - if function goes M9, M10 and M10 in the formulas
    Yes, I get that part, but no matter which 1 is selected, the "do this" part is the same.

    How do you want the numbering to look, and based on what?

  6. #6
    Registered User
    Join Date
    07-07-2015
    Location
    Brisbane
    MS-Off Ver
    2010
    Posts
    8

    Re: Numbering column with IF function

    I was attempting to get it to number Option A 1 to 10, same for Option B and Option C. They will not be directly underneath each other in the rows however.
    It could be like:
    Option A
    Option B
    Option A
    Option C
    Option A

    in which case I wanted it to automatically number itself like
    1 Option A
    1 Option B
    2 Option A
    1 Option C
    3 Option A
    etc

    Is this do-able?

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Numbering column with IF function

    Perhaps this is what you want?

    A
    B
    2
    1
    Option A
    3
    1
    Option B
    4
    2
    Option A
    5
    1
    Option C
    6
    3
    Option A

    A2=COUNTIF($B$2:B2,B2)
    copied down

  8. #8
    Registered User
    Join Date
    07-07-2015
    Location
    Brisbane
    MS-Off Ver
    2010
    Posts
    8

    Re: Numbering column with IF function

    Wowee that was easy haha, thank you!

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Numbering column with IF function

    Thanks

    If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neat and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below my 1st post to you)

+ 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. Replies: 2
    Last Post: 06-27-2014, 06:40 AM
  2. [SOLVED] Numbering a column if a string is recognised in the adjacent column
    By atourist in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-30-2013, 10:50 PM
  3. [SOLVED] Numbering column B if column A and B follow a pattern
    By hbangalore in forum Excel General
    Replies: 9
    Last Post: 04-16-2012, 08:51 AM
  4. Page Numbering Function?
    By Stan Banner in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  5. Page Numbering Function?
    By Mangus Pyke in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  6. Page Numbering Function?
    By Stan Banner in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. Page Numbering Function?
    By Stan Banner in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM

Tags for this Thread

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