+ Reply to Thread
Results 1 to 5 of 5

Series of Numbers based on Certain Condition

  1. #1
    Forum Contributor
    Join Date
    10-20-2005
    Posts
    127

    Series of Numbers based on Certain Condition

    Hi Experts,

    Need your advice on small thing. I have a Sheet & column A consist of Serial Number which I input in Cell A2 by using formula =A1+1, now I have a tricky situation. I want this series of numbers based on certain condition in column B

    For eg. column B some cells in column B term "FIRST" and some cells contails "PART"

    I want the Cell in Column A to be blank if corresponding Cell in Column B contains "PART" and I want to put series of number in continuation if Cell in Column A Contains term "FIRST"

    I tried using formula -
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    but it throws error if above cell is blank.

    Any kind of help is highly appreciated. Thanks.
    Last edited by Little Master; 12-09-2016 at 02:22 AM. Reason: Solved
    Regards,
    Little Master

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: Series of Numbers based on Certain Condition

    Try this in A2 drag copied down:

    =IF(B2="FIRST",$A$1+COUNTIF($B$2:B2,"FIRST"),"")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: Series of Numbers based on Certain Condition

    Did you solve it a different way yourself, or did you use my suggestion?

  4. #4
    Forum Contributor
    Join Date
    10-20-2005
    Posts
    127

    Re: Series of Numbers based on Certain Condition

    Your formula worked like charm...thanks a ton...

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: Series of Numbers based on Certain Condition

    You're welcome!

+ 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] Insert chart series label based on condition using for each - next loop
    By hcyeap in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-07-2014, 09:34 AM
  2. Spread out a series that begin with one digit based on given numbers
    By cgkmal in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-15-2014, 11:05 AM
  3. [SOLVED] create a series of cell values from the concateneation of 2 lists based on a condition
    By dpen in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-28-2013, 07:15 AM
  4. Replies: 0
    Last Post: 09-14-2011, 02:14 PM
  5. Filling series column based on if condition
    By RedWing in forum Excel General
    Replies: 7
    Last Post: 09-07-2011, 02:23 PM
  6. Sum largest numbers based on condition
    By Daniel Bonallack in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-15-2006, 03:25 PM
  7. Alternate shading based on series of numbers in 3 columns
    By Ozbobeee in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-20-2005, 03:05 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