+ Reply to Thread
Results 1 to 7 of 7

Returning a Date Value

  1. #1
    Registered User
    Join Date
    06-22-2019
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    3

    Returning a Date Value

    Hello all, I'm new to the forum.
    I need help creating a formula to return a (date) found in row one if a the letter (C) is found in the corresponding row three.
    So this is what I have...
    I have a worksheet that I track Oil Analysis samples...the first row is the date that I take the sample on, if the oil needs changed I mark the cell below the date with a "C" indicating Change.
    Row 1 is the dates on which the oil sample was collected.
    Row 3 is the machine that the sample relates to. Underneath each date is a letter "S" for sample or the letter "C" for change, there are also empty cell in the row.
    Cell E3 is the cell that indicates the (Last Oil Change)
    I need a formula the will look at row 3...ignore the cells that are empty or contain the letter "S" find the last column to the right with the letter "C" in it, and return the corresponding date above in Row 1 to the cell E3.

    Thanks in advance for any help

  2. #2
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Returning a Date Value

    Can you provide some sample data and what the expected outcome is?

  3. #3
    Registered User
    Join Date
    06-22-2019
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Returning a Date Value

    Attachment 629291I need a formula that will return the date in the top row above the farthest right Letter "C" to the cell next to the machine (Cell C3)
    For example; P-01 last oil change date would be 7/1/2013, P-02 last oil change would be 12/25/2016, P-03 last oil change would be 7/1/2012, P-04 last oil change would be 7/1/2012
    Last edited by Saw59; 06-23-2019 at 09:30 AM. Reason: Wrong information

  4. #4
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Returning a Date Value

    Invalid Attachment specified.

    To upload an Excel workbook, follow these steps:
    1) Click on "Go Advanced"
    2) Click on "Manage Attachments"
    3) Click on "Choose File"
    4) Choose your file and click on "Open"
    5) Click on "Upload"
    6) Click on "Close this window"

  5. #5
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Returning a Date Value

    Based on your description, a formula such as
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    should do what you ask.

  6. #6
    Registered User
    Join Date
    06-22-2019
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Returning a Date Value

    Thanks CARACALLA and jason.b75 for helping me.
    Hopefully the File uploaded
    Column E (Last Oil Change) needs to display the date in line 1 if there is a "C" in the column below the date.
    The =MAXIFS(3:3,"C",1:1) formula gives me a Problem box with the formula.
    Currently...as you can see... i have to enter the (last oil change) date by hand.
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Returning a Date Value

    That was my error, the last bit of the formula should have been first, it should have been
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    that will return a circular reference, which you can work around by enabling iterative calculation, (in excel follow the ribbon / menu path, File > Options > Formulas and check the box to enable iterative calculations).

    Alternatively, you could restrict the formula to a smaller number of columns, for example
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    In addition, you can make it easier to fill down by error trapping rows with no "C" with
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    enter the formula into E3, then select E3:E83, press F2, then Ctrl Enter to fill the formula to the column.
    Attached Files Attached Files

+ 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. Date differential returning number of current date
    By Carmella in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-09-2017, 05:07 PM
  2. Lookup returning Date but when no date equals January 0 1900
    By jaredmccullough in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-18-2015, 10:25 AM
  3. Help Returning The Week Day of a Date Without Using DATE and WEEKDAY Functions
    By vampirealexa in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-15-2013, 02:12 AM
  4. Returning BLANK date PRIORITY before Newest/Latest Date
    By dluhut in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-11-2013, 04:43 PM
  5. [SOLVED] Returning a date from a range if date falls between two other dates
    By sdavison in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-25-2013, 03:59 AM
  6. Returning Values based on date falling between Date ranges
    By honest1122 in forum Excel General
    Replies: 5
    Last Post: 06-29-2012, 05:10 PM
  7. Replies: 2
    Last Post: 04-08-2012, 03:36 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