+ Reply to Thread
Results 1 to 3 of 3

Formula to add 1 to a cell if equals another...

  1. #1
    Registered User
    Join Date
    02-29-2012
    Location
    Germany
    MS-Off Ver
    Excel 2011 MAC
    Posts
    77

    Formula to add 1 to a cell if equals another...

    I need a formula to increase the value cell "C" if it the same value exists else where example below. I need a formula to create column "C"...

    If anyone could help I would be very happy!

    Column B
    W8501520254
    W8501520354
    W8501520554
    W8501520654
    W01851200P3
    W01851201P3
    W01851250P3
    W01820202P3
    W01820200P3



    Column C
    W8501520254-001
    W8501520354-002
    W8501520554-003
    W8501520654-004
    W01851200P3-001
    W01851201P3-002
    W01851250P3-003
    W01820202P3-004
    W01820200P3-005

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Formula to add 1 to a cell if equals another...

    In C1 copied down

    =B1&"-"&TEXT(COUNTIF($$B$1:B1),B1),"000")
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    02-29-2012
    Location
    Germany
    MS-Off Ver
    Excel 2011 MAC
    Posts
    77

    Re: Formula to add 1 to a cell if equals another...

    That does work but I noticed I didn't need this as the numbers were not the same... Thanks anyways though...

+ 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] formula equals cell directly above
    By Lynne...... in forum Excel General
    Replies: 3
    Last Post: 12-12-2014, 03:00 PM
  2. [SOLVED] Need a formula that returns a the content from a cell if another cell equals yes
    By sumner06 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-20-2013, 06:41 PM
  3. How run a Macro if cell E1 equals a value derived from a formula
    By StevePete in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-31-2013, 02:00 PM
  4. How run a Macro if cell A1 equals a value derived from a formula
    By Stickleback in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-20-2012, 01:39 PM
  5. An equals formula that doesn't return a blank cell
    By stanja in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-30-2009, 03:37 PM

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