+ Reply to Thread
Results 1 to 3 of 3

Changing the contents of a cell based on the cell above

  1. #1
    Registered User
    Join Date
    01-24-2019
    Location
    London, England
    MS-Off Ver
    365
    Posts
    18

    Changing the contents of a cell based on the cell above

    Hello everyone

    I need to make the contents of a cell a certain value if the cell below (on the next row) is a certain value.

    So, in this case, if a cell contains the number 3 then I need to make the next cell down to be number 3 as well. I'm sure this is possible using Conditional Formatting, but I can't seem to get it to work.

    Any help would be much appreciated.

    Thank you
    Jon

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,364

    Re: Changing the contents of a cell based on the cell above

    Conditional Formatting does what it says on the tin ... changes the formatting dependant on one or more conditions. You can't change a cell's value.

    You'll probably need VBA for this task ... unless there is a formula in the cell that can be adapted.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Changing the contents of a cell based on the cell above

    I may be misunderstanding your requirement, but just in case I'm not:

    From your example, let's say the cell possibly containing 3 is cell A1. The cell below is A2. What do you want cell A2 to be if cell A1 does NOT contain 3? Here, for the formula in cell A2 I have assumed cell A2 should be blank if cell A1 is anything other than 3
    In A2: =IF(A1=3, 3, "")
    Geoff

    Did I help significantly? If you wish, click on * Add Reputation to say thanks.
    If your problem has been resolved please select ?Solved? from the Thread Tools menu

+ 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] Changing Font Colour based on cell contents
    By liamfrancis2013 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-05-2018, 10:09 AM
  2. [SOLVED] Changing range of max() formula based on a cell contents
    By Mr_Phil in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-17-2018, 07:14 PM
  3. Replies: 3
    Last Post: 06-29-2015, 03:03 PM
  4. Replies: 2
    Last Post: 07-01-2013, 10:51 AM
  5. Split cell contents over multiple rows based on cell contents
    By naigy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-17-2011, 05:38 PM
  6. Changing cell contents based on date.
    By SteelySteve in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-11-2008, 10:06 PM
  7. Changing Background Colour Based on Cell Contents
    By Sukh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-12-2006, 09:00 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