+ Reply to Thread
Results 1 to 2 of 2

Want a cell to change which cell it references based on content in adjacent cells

  1. #1
    Registered User
    Join Date
    05-09-2018
    Location
    Vancouver
    MS-Off Ver
    Mac
    Posts
    1

    Want a cell to change which cell it references based on content in adjacent cells

    I am making a sales ledger for a little fun and am wanting to track month to date and year to date sales in a single cell.
    I am attempting to make cell C36 to reference whichever cell in column C has most recently filled in. This means that at the end of each night, when we input the sales total for the day, cell C36 will change. I see one of two ways to do this:
    1) Make cell C36 reference the corresponding total in column D OR
    2) Make cell C36 reference the sum of the days up to that point.

    I would prefer option 2 but I am willing to go with whatever at this point.
    See attached photos for how the cells will change day-to-day

    Day 1
    Grab 1.jpeg

    Day 2
    Grab 2.jpeg

    Day 3
    Grab 3.jpeg
    Attached Images Attached Images

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,498

    Re: Want a cell to change which cell it references based on content in adjacent cells

    May be in C36:
    =LOOKUP(2,1/($C$2:$C$32>0),$D$2:$D$32)
    Quang PT

+ 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] Format cells based on change of adjacent cell
    By wacky_diva in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-12-2016, 06:54 PM
  2. Replies: 1
    Last Post: 07-29-2015, 02:30 AM
  3. code to copy content to adjacent cells based on a cell value
    By anbarasi_r in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-28-2015, 12:42 PM
  4. Replies: 3
    Last Post: 09-18-2014, 02:22 PM
  5. VBA Code to Make a Cell Value Negative Based on Content of Adjacent Cell
    By Court Manager in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-08-2014, 04:18 PM
  6. [SOLVED] Sum of Cell references between sheets if certain text is in adjacent cells
    By krowell in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-04-2013, 05:50 PM
  7. Counting cells with a criteria based on content and adjacent cell
    By ziggy12345 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-03-2008, 03:32 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