+ Reply to Thread
Results 1 to 6 of 6

Macro to change the value of a cell based on the value of another

  1. #1
    Registered User
    Join Date
    12-07-2012
    Location
    Colorado
    MS-Off Ver
    2010
    Posts
    17

    Macro to change the value of a cell based on the value of another

    I need to change the value in C based off of B. If B is says "R,G or SS" C needs to be 1 number greater than the cell above it, if B is empty then C needs to remain empty.
    Attached Files Attached Files

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Macro to change the value of a cell based on the value of another

    You need a macro for that? How about just a simple formula like this:

    =IF(SUM(IF(B8={"G","R","SS"},C7+1,0))=0,"",C7+1)

    - Moo

  3. #3
    Registered User
    Join Date
    12-07-2012
    Location
    Colorado
    MS-Off Ver
    2010
    Posts
    17

    Re: Macro to change the value of a cell based on the value of another

    I tried that, but there is a macro putting in a static date stamp in another column based off the value in C. When I put the formula in the macro activates prematurely

  4. #4
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Macro to change the value of a cell based on the value of another

    Ahh, good enough. I'll have to defer to the VBA pros on the forum for that one then. I tried.

    - Moo

  5. #5
    Registered User
    Join Date
    12-07-2012
    Location
    Colorado
    MS-Off Ver
    2010
    Posts
    17

    Re: Macro to change the value of a cell based on the value of another

    Problem solved, I changed the static date macro target range cells so I can use that formula in C. Thanks for the assistance. Don't know why I didn't thinkof that to begin with. It dawned on me after I replied to your post.

  6. #6
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Macro to change the value of a cell based on the value of another

    Well, glad I could stir up the pot. Have a nice weekend.

    And thanks for the rep. It's always appreciated.

    - Moo

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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