+ Reply to Thread
Results 1 to 4 of 4

Thread: Number cells using a condition in another cell

  1. #1
    Registered User
    Join Date
    09-08-2010
    Location
    Mooloolaba
    MS-Off Ver
    Excel 2007
    Posts
    56

    Number cells using a condition in another cell

    Hi,

    I have Excel 2010. Regarding the attached spread sheet I need a formula to automatically number the cells in column A as shown. It would need some preferably all conditions, if no '-' and '*' and 'lowercase letters' and 'underlining'.
    Attached Files Attached Files
    Last edited by ccpsc; 01-21-2012 at 08:39 PM. Reason: Incorrect spread sheet

  2. #2
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,222

    Re: Number cells using a condition in another cell

    You can put this formula in A22, then copy that cell down the column:

    =IF($C22<>"", MAX($G$1:$G21)+1, IF(ISNUMBER(SEARCH("Excl", $B22)), MAX($G$1:$G21)+1, ""))
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    09-08-2010
    Location
    Mooloolaba
    MS-Off Ver
    Excel 2007
    Posts
    56

    Re: Number cells using a condition in another cell

    Thanks that works fine. When I insert rows in a spread sheet it doesn't insert formulas I have to remember to do it. Is there a setting that will change this?

  4. #4
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,222

    Re: Number cells using a condition in another cell

    No, you will have to remember.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0