+ Reply to Thread
Results 1 to 20 of 20

purchased vs invoiced days duplicates values

  1. #1
    Registered User
    Join Date
    07-14-2014
    Location
    Bucharest, Romania
    MS-Off Ver
    Microsoft Office 2010
    Posts
    66

    purchased vs invoiced days duplicates values

    Dear All,

    I need your help in order to find a correct formula who can return date between “Scan Date” and “Invoice date” from the attached file ?

    Issue – I want to know how many days has past from Scan Date till invoice date (you can see that I have a lot of duplicates p/n in the file).

    From Scan Date I need to return the Invoice Date - the invoice date must be ” =>” then Scan date, not “<”.

    I sent this message on several forums, but without success to be solved ....

    Can anybody help me with this issue ?

    Many thanks,
    Costin
    Last edited by costi_linho12; 07-14-2014 at 12:53 PM. Reason: error...

  2. #2
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: purchased vs invoiced days duplicates values

    What is wrong with the formula in place? What do you want to happen if the scan date is after the invoice date? And vice versa?

  3. #3
    Registered User
    Join Date
    07-14-2014
    Location
    Bucharest, Romania
    MS-Off Ver
    Microsoft Office 2010
    Posts
    66

    Re: purchased vs invoiced days duplicates values

    Hello hoyasaxa215,

    Thanks for reply. My formula is wrong....

    What I want to return is the number of days & Invoice date until final invoice (the invoice date must be => then Scan date, not <).

    Regards,
    Costin

  4. #4
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: purchased vs invoiced days duplicates values

    Can you update the file to provide an example of what the correct information should be? Highlight the cells where you'd like formulas to import the data you're looking for and then upload. It's still not entirely clear. Thanks.

  5. #5
    Registered User
    Join Date
    07-14-2014
    Location
    Bucharest, Romania
    MS-Off Ver
    Microsoft Office 2010
    Posts
    66

    Re: purchased vs invoiced days duplicates values

    Attached the update made manually.
    Somehow you must take from Source sheet Invoice Date , this information must be placed in D2 (must be always positive), and then make the difference between D2 and E2 (final number of days on stock till final invoice).

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: purchased vs invoiced days duplicates values

    The dates in Source!E2:E24 are TEXT. Change these to real dates and then your formula will work. There is a negative value in final!F6 and F7 because the scan date is newer than the invoice date.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  7. #7
    Registered User
    Join Date
    07-14-2014
    Location
    Bucharest, Romania
    MS-Off Ver
    Microsoft Office 2010
    Posts
    66

    Re: purchased vs invoiced days duplicates values

    This is my issue, I don't know what formula to use (because of the duplicates)...

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: purchased vs invoiced days duplicates values

    This might help. The dates on the Source worksheet are TEXT and will not calculate. I converted them to real dates by selecting them and then used DATA, TEXT TO COLUMNS,NEXT, NEXT, chose MDY, FINISH.

    I changed the date format to show the day of the week with the date then added consecutive INVOICE DATES so that you could see what was going on.

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: purchased vs invoiced days duplicates values

    Why not use the ENTRY NO from the Source worksheet by inserting a column for ENTRY NO on the Final Worksheet. You can hide it if you don't want it visible.

    The ENTRY NO appears to not be duplicated so it might be a good id to use.

  10. #10
    Registered User
    Join Date
    07-14-2014
    Location
    Bucharest, Romania
    MS-Off Ver
    Microsoft Office 2010
    Posts
    66

    Re: purchased vs invoiced days duplicates values

    In your file Scan date is the same and is not correct, in my test file Invoice date return the same Mon 13/01/2014....I don't know where is my mistake.

  11. #11
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: purchased vs invoiced days duplicates values

    I'm totally confused.

  12. #12
    Registered User
    Join Date
    07-14-2014
    Location
    Bucharest, Romania
    MS-Off Ver
    Microsoft Office 2010
    Posts
    66

    Re: purchased vs invoiced days duplicates values

    The ENTRY NO appears to not be duplicated, yes, but I cannot put the ENTRY NO to final sheet. I don't know a formula who can return ENTRY NO (see attached file)

    Thanks for your help,
    Costin

  13. #13
    Registered User
    Join Date
    07-14-2014
    Location
    Bucharest, Romania
    MS-Off Ver
    Microsoft Office 2010
    Posts
    66

    Re: purchased vs invoiced days duplicates values

    Hello,

    In this moment, my file has 20.000 lines, and I make the update with more information every week, in attached file "purchased vs invoiced days duplicates values updated 2.xlsx‎" you can see that in source sheet for exemple p/n 123456 moved (by a sale) from stock 455 times and also has 455 unique ENTRY NO - this unique ENTRY NO will be different every time I make the file update (I don't know a way to put the unique ENTRY NO from source sheet in final sheet to every p/n).

    When I use INDEX & MATCH the result sometimes return Invoice date < than Scan date and is not ok the Invoice date must be => than Scan date.

    I'm totally confused...maybe is another way to solve this issue with duplicate values ?

    My question remain the same - how to return the Invoice date with a positive date when I have duplicate values in source sheet and also, in final sheet ?

    Regards,
    Costin

  14. #14
    Registered User
    Join Date
    07-14-2014
    Location
    Bucharest, Romania
    MS-Off Ver
    Microsoft Office 2010
    Posts
    66

    Re: purchased vs invoiced days duplicates values

    Hello,

    Sorry for pushing... can you find a way to solve this issue ?

    Regards,
    Costin

  15. #15
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: purchased vs invoiced days duplicates values

    You need to have at least one shared element that is unique between the two tables. Right now, there is nothing unique (even combinations of columns that create something unique) between the two tables.

  16. #16
    Registered User
    Join Date
    07-14-2014
    Location
    Bucharest, Romania
    MS-Off Ver
    Microsoft Office 2010
    Posts
    66

    Re: purchased vs invoiced days duplicates values

    Hello newdoverman,

    Thanks for reply and info, from what you told me is not possible to do this when I have duplicates, but if I remove all the duplicates can you find a solution ?

    Regards,
    Costin

  17. #17
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: purchased vs invoiced days duplicates values

    Without some element that is common to both, there can be no guarantee that the records are properly matched even with duplicates removed. The only hope is that both records have the same number of records and they are in exactly the same order otherwise, I don't see how this can be done.
    Last edited by newdoverman; 07-16-2014 at 04:31 PM.

  18. #18
    Registered User
    Join Date
    07-14-2014
    Location
    Bucharest, Romania
    MS-Off Ver
    Microsoft Office 2010
    Posts
    66

    Re: purchased vs invoiced days duplicates values

    Thanks for your help and your time spent with this issue !

    Regards,
    Costin

  19. #19
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: purchased vs invoiced days duplicates values

    You're welcome. Thank you for the feedback.

  20. #20
    Registered User
    Join Date
    07-14-2014
    Location
    Bucharest, Romania
    MS-Off Ver
    Microsoft Office 2010
    Posts
    66

    Re: purchased vs invoiced days duplicates values

    fyi

    Hello,

    A colleague of mine solved this issue with IF function. See in attached file.

    Regards,
    Costin
    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. [SOLVED] Formula to Validate Invoiced Rates Against a Rate Card
    By The_Snook in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-30-2014, 02:49 PM
  2. [SOLVED] Macro to find duplicates, concatenate Unique Values, then delete old duplicates
    By lesoies in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-17-2013, 04:32 PM
  3. Replies: 0
    Last Post: 09-20-2012, 12:05 PM
  4. Replies: 6
    Last Post: 03-29-2012, 12:16 AM
  5. [SOLVED]Invoiced days per month
    By txbullets in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-03-2009, 04:23 PM

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