+ Reply to Thread
Results 1 to 5 of 5

Display a cell if cell x = exact and cell y = close(a date)

  1. #1
    Registered User
    Join Date
    08-27-2018
    Location
    Oklahoma
    MS-Off Ver
    365
    Posts
    6

    Display a cell if cell x = exact and cell y = close(a date)

    I have no idea how to describe this. Lol.

    So I have data pull from our SQL and I cannot link 2 tables so I though about doing it in excel.

    I am doing job costing and price. I have one tab with all the job costings and another for the sell price. I cannot do a vlookup as the price may have changed through the life cycle of the part. And I need the part number and date be the determining factor of pulling in the price.

    Issue being the exact date may not match. It could be several days between the job date and price date.

    Does that make sense?

    excel example.png
    Last edited by ckeathley; 07-16-2019 at 02:33 PM.

  2. #2
    Registered User
    Join Date
    08-27-2018
    Location
    Oklahoma
    MS-Off Ver
    365
    Posts
    6

    Re: Display a cell if cell x = exact and cell y = close(a date)

    This is cut down but should be able to provide the correct information.
    Attached Files Attached Files

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Display a cell if cell x = exact and cell y = close(a date)

    On sheet "part analysis" you have column "closeddate"
    On sheet "sale price" you have column "shipdate"

    given on part analysis sheet, partnum=06ND78010-22 with closed date=01/05/2015

    then on sale price sheet, you have shipdates:
    06/28/2019
    04/18/2019
    03/15/2019

    You said: "...Issue being the exact date may not match. It could be several days between the job date and price date. ..."

    So, what/where are exact date, job date and price date?
    Last edited by protonLeah; 07-16-2019 at 05:01 PM.
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    08-27-2018
    Location
    Oklahoma
    MS-Off Ver
    365
    Posts
    6

    Re: Display a cell if cell x = exact and cell y = close(a date)

    We receive parts into stock and then ship. So the dates closed means when we received them into stock, date shipped is just that, when we shipped them. They could be a quick turn/sale part but it could be some time before it's actually sold.

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Display a cell if cell x = exact and cell y = close(a date)

    In the file I can not find part number 01ND-36003-11 on the Sale Price sheet.
    As to the screen shot I am guessing that K5:K6 and K8 should receive the sales price from 12/9/16 as C5:C6 and C8 are all later than that date. However why does K9, dated 4/26/16, receive the sales price from 10/31/16 instead of 2/17/16. I am lost as to where the sales price of K10 should come. I would suggest uploading a small sample, manually typing the sales prices in column K and then giving details as to why the value in column K comes from a specific sales price date.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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: 3
    Last Post: 01-02-2018, 08:15 PM
  2. Copy exact display of another cell
    By seanppp in forum Excel General
    Replies: 9
    Last Post: 11-05-2015, 08:31 AM
  3. Looking to display data in a cell, only if today's date is 7 days past a cell's date
    By mbenderpetassure in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-20-2015, 01:57 PM
  4. Cell to calculate when another cell date is expired or close to expiring
    By Muzza86 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-28-2014, 11:08 AM
  5. Displaying cell value if 2 other cells display the exact results
    By Streaky in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-10-2014, 07:59 AM
  6. Replies: 4
    Last Post: 05-06-2013, 03:13 PM
  7. [SOLVED] clicking on a cell should display date&time on adjacent cell. thanks for your help!!
    By tfaridi in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-30-2012, 02:44 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