+ Reply to Thread
Results 1 to 4 of 4

If a cell is filled, post a different cells contents

  1. #1
    Registered User
    Join Date
    03-18-2019
    Location
    Australia
    MS-Off Ver
    Microsoft excel 2016
    Posts
    2

    If a cell is filled, post a different cells contents

    Hi,

    Hoping somebody could please provide some guidance. What I'm trying to achieve is below:
    - I have daily dates cells L2:CH2
    - To confirm when a cell task is completed, I'm putting in either an X or a time. So anywhere from cell L3 to CH3 there's an X or time.
    - I want cell E3 to display when a task is due to be completed, so somehow it's got to read L3:CH3 and find the last filled out cell, then insert the due date from the corresponding cells L2:CH2.
    - Some of the cells in L3:CH3 have multiple X/times, so I only want it to recognise the last cell in the row that was completed.

    I'm thinking it's going to need to be VBA, but if someone knows how to do this, it would please be much appreciated.

    Thanks,

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: If a cell is filled, post a different cells contents

    Hi, welcome to the forum

    Without anything to test with, try this (adjust ranges as needed)...
    =INDEX($L$1:$CH$1,MATCH(0,L2:CH2,-1))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    03-18-2019
    Location
    Australia
    MS-Off Ver
    Microsoft excel 2016
    Posts
    2

    Re: If a cell is filled, post a different cells contents

    Thanks for the welcome and the quick response.

    If I directly copy your formula, it's giving my answer as 0. When I looked at the fields, it appears to reference the wrong cell numbers, so I changed it for index to cells L2:CH2 and match to L3:CH3.

    Now it's giving my answer as N/A when I can see the answer for this cell should be the date in cell L2

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: If a cell is filled, post a different cells contents

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

+ 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] clear contents of yellow filled cell-receiving '400' error
    By Lbischoff in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-07-2017, 01:50 PM
  2. Count filled and empty cells from the first filled cell in a row
    By mdaoust in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-01-2014, 01:23 PM
  3. [SOLVED] automatically fill cells because other cells have been filled - SEE OPENING POST
    By tlacloche in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-02-2013, 10:38 AM
  4. [SOLVED] Combine Cell Contents to with a [return] or [fill with spaces] between each cells contents
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-16-2012, 11:24 PM
  5. Replies: 12
    Last Post: 07-10-2012, 05:04 PM
  6. Replies: 1
    Last Post: 10-11-2009, 04:59 AM
  7. Display cell contents on top of solid-filled Autoshape
    By AussieExcelUser in forum Excel General
    Replies: 5
    Last Post: 10-30-2007, 01:58 AM

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