+ Reply to Thread
Results 1 to 3 of 3

Macro to add a zero to a cell, based on the value in another column

  1. #1
    Forum Contributor
    Join Date
    04-25-2011
    Location
    Donegal, Ireland
    MS-Off Ver
    Excel 2013
    Posts
    133

    Macro to add a zero to a cell, based on the value in another column

    I have 2 columns called 'Visibility' and 'Status'.

    Status column has text values that are either 'Matching' 'Non-Matching' 'Matching and Updated' or 'New Row'
    The Visiblity column needs to updated based on these values in the status column.

    'Non-Matching' to represented by a '0' in the visibility, the other 3 text values to be represented by the number '4'

    I want to be able to run a macro to make this happen.

    Would appreciate any help in making this work.

    Regards
    John
    Last edited by JohnnyBoyxxx; 12-16-2013 at 07:08 PM. Reason: spelling mistake

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Macro to add a zero to a cell, based on the value in another column

    You should have posted a sample workbook.

    This will get you started.

    I am assuming you are using columns A and B

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by mehmetcik; 12-16-2013 at 07:28 PM.

  3. #3
    Forum Contributor
    Join Date
    04-25-2011
    Location
    Donegal, Ireland
    MS-Off Ver
    Excel 2013
    Posts
    133

    Re: Macro to add a zero to a cell, based on the value in another column

    Perfect, absolutely what i needed, first time straight out of the box, N1 Mehmetcik, Thank you.
    Spent a good part of the day trying to sort this out, thought i'd come here and see if someone could help.
    I see you posted the reply within 20 mins of my post going live.
    Really nice to wake up to find this resolved, feels like i've had a visit from the 'Excel fairy'.
    Anyway, (going off on one there a bit), many thanks, very much appreciated, now onto the next problem of the day.
    Last edited by JohnnyBoyxxx; 12-17-2013 at 06:11 AM. Reason: spelling

+ 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: 1
    Last Post: 08-15-2013, 04:12 PM
  2. Macro to hide column based on cell value
    By kingharvest in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-17-2012, 11:24 AM
  3. Need macro to hide column based on cell value
    By kduschel in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-27-2012, 12:26 AM
  4. Formula/macro to edit cells in one column based on contents of a cell in another column
    By robbyvegas in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-25-2012, 06:10 AM
  5. Macro to effect cell based on column
    By Irprogram in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-26-2008, 09:42 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