+ Reply to Thread
Results 1 to 11 of 11

Subtract dates in same column

  1. #1
    Registered User
    Join Date
    12-20-2012
    Location
    Kildare
    MS-Off Ver
    Excel 2007
    Posts
    5

    Subtract dates in same column

    Hi,

    I have 4 cols of data.

    A = part number
    B = Tester
    C = Date
    D = Weight

    Parts are weighed and then weighed again after 2 weeks approx.

    Can anyone suggest a formula that will subtract the weight on the second date by part number please?
    Attached Files Attached Files
    Last edited by jimde; 01-01-2013 at 08:35 AM. Reason: Poor title

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Neat formula required

    jimde,

    Welcome to the forum!
    In your list, there are several part numbers that are weighed either only once, or more than twice (weighed up to 7 times in fact). What do you want in these cases? The difference between the two most recent weights? The difference between the original weight and the most recent weight? etc
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    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,956

    Re: Neat formula required

    welcome to the forum however....

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    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

  4. #4
    Registered User
    Join Date
    12-20-2012
    Location
    Kildare
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Neat formula required

    Hi tigervater,

    Should have been clearer, yes the difference between the original and the most recent.
    Any parts that don't have a second entry, please ignore.

    Thanks Jim

  5. #5
    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,956

    Re: Problem with Formula

    Your post does not comply with Rule 7 of our Forum RULES. Please do not ignore Moderators' or Administrators' requests - note that this includes requests by senior members as well, if you are unclear about their request or instruction then send a private message to them asking for help. Do not post a reply to a thread where a moderator has requested an action that has not been complied with e.g Title change or Code tags...etc

  6. #6
    Registered User
    Join Date
    12-20-2012
    Location
    Kildare
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Problem with Formula

    Hi,

    I changed the title to one suggested by the mod before I replied.
    I didn't realize that the first 2 replies would remain unchanged.

    Jim

  7. #7
    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,956

    Re: Problem with Formula

    and "Problem with formula" is more descriptive of what you want than "Neat formula required"...how?

    please rename your thread to something more meaningful, that actually describes your problem. lots of contributors will look at a thread title, and if it is of interest to them, or falls within their area of expertese, they might only open those threads. also, searching for "help" will not turn up too many results that will benifit you, sorry.
    To change a Title on your post, click EDIT on you're 1st post, then Go Advanced and change your title"

  8. #8
    Registered User
    Join Date
    12-20-2012
    Location
    Kildare
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Neat formula required

    Hi,

    For now I'd be happy to resolve the products with 2 dates. The products weighed once are either incomplete or awaiting a second test. Multiple values indicate operator error, which I'll deal with later.
    Thanks for your help.

    Jim

  9. #9
    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,956

    Re: Subtract dates in same column

    jimde, you will not recieve any offers of help until you comply with the moderators request to change your thread title to something that actually describes what you want

  10. #10
    Registered User
    Join Date
    12-20-2012
    Location
    Kildare
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Subtract dates in same column

    Have I not?

  11. #11
    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,956

    Re: Subtract dates in same column

    yes, you have now, thanks

    try this in E2, copied down...
    =IFERROR(D2-VLOOKUP(A2,A3:$D$534,4,0),"")
    Last edited by FDibbins; 01-01-2013 at 09:38 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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