+ Reply to Thread
Results 1 to 16 of 16

Populate report from date to date or empty cells for many customers

  1. #1
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    726

    Populate report from date to date or empty cells for many customers

    Hello
    I want to show all of customers across sheets based on two condition if the cells B2,D2 contains dates then should merge amounts for each sheet alone for each customer . in first and second sheet should merge amounts are existed in column J in last row contains SUM word when repeat the amounts for the same customer then should sum within two dates as I put in CASE1 in last sheet and if the cells B2,D2 are empty then should show all of customers as I put in case2 and insert TOTAL row to sum every column contains amount .
    before bring the data should clear cells to update any new data add in others sheets .
    when merging based on column C(CLIENT) in first and second sheets , as to third sheet when merge based on column B,D(the column D contains two words RRES, VVRES so will show in the headers and when merge put under them for the customer is existed in column B )
    should create the headers sheets names for 1,2 sheets , as to third sheet will create headers for two words are existed in column D.
    the result could be based on two condition as in last sheet but should show in REPORT sheet .
    thanks
    Attached Files Attached Files
    Last edited by abdo meghari; 12-09-2023 at 09:57 AM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,359

    Re: Populate report from date to date or empty cells for many customers

    Please Login or Register  to view this content.
    I added an "Item" column to "PP" to make the date field in a consistent column (B) BUT as far I can judge adding ITEM columns add no value or use to the data so why have them at all?.
    Attached Files Attached Files
    Last edited by JohnTopley; 12-09-2023 at 07:52 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    726

    Re: Populate report from date to date or empty cells for many customers

    thanks but it gives wrong result , for instance CSS10-MM100 should be 15500 whether write dates or empty cells and columns E,F doesn't show anything from PP sheet.
    should merge for each sheet alone in report sheet
    Last edited by abdo meghari; 12-09-2023 at 08:16 AM.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,359

    Re: Populate report from date to date or empty cells for many customers

    If I were you I would check the SUM calculations for CSS10-MM100 and data for PP is in columns E:F ........

    I ADDED An extra column in "PP" which you have ignored so you will not get results for "PP"!

    In future, please READ the replies you get.
    Last edited by JohnTopley; 12-09-2023 at 09:35 AM.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,588

    Re: Populate report from date to date or empty cells for many customers

    abdo meghari,
    I always hesitate to respond to your thread because the figures of my result are ALWAYS different from yours.

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    726

    Re: Populate report from date to date or empty cells for many customers

    I always hesitate to respond to your thread because the figures of my result are ALWAYS different from yours.
    understood !
    not excuses, but that's because I'm hurry up, sorry !
    my mistake in VBB67-GH600 shouldn't be in SR sheet 3880 ,but the right is 8280 as your code does it , but it doesn't bring CSS10-MM103 from SVR,PP sheets when the cells B2,D2 are empty .
    Last edited by abdo meghari; 12-09-2023 at 09:58 AM.

  7. #7
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    726

    Re: Populate report from date to date or empty cells for many customers

    In future, please READ the replies you get.
    sorry !
    but why gives me wrong summing for CSS10-MM100 should be 15500, not 13510 !

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,588

    Re: Populate report from date to date or empty cells for many customers

    I don't care if you are in hurry or not, don't post the sample workbook with the wrong figures.
    That's only confusing people, don't be spoiled...

    Upload your workbook that doesn't "bring CSS10-MM103 from SVR,PP sheet".
    It is picks 6000 from "SVR" and 2000 in "PRES".

  9. #9
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    726

    Re: Populate report from date to date or empty cells for many customers

    Upload your workbook that doesn't "bring CSS10-MM103 from SVR,PP sheet".
    It is picks 6000 from "SVR" and 2000 in "PRES".
    sorry I was wrong !
    thank you so much for your help

  10. #10
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    726

    Re: Populate report from date to date or empty cells for many customers

    jindon
    just I have a question , it happens strange problem by shows mismatch error in this line
    Please Login or Register  to view this content.
    I'm not sure what the reason causes ,but when I close the file and open again the error is gone !

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,359

    Re: Populate report from date to date or empty cells for many customers

    Please Login or Register  to view this content.
    Uses "PP" as original (no added column)
    Attached Files Attached Files

  12. #12
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    726

    Re: Populate report from date to date or empty cells for many customers

    John
    as I said in post b#7 still the same error!

  13. #13
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    726

    Re: Populate report from date to date or empty cells for many customers

    @jindon forgot post #10 I think the problem from John's file
    in original file works
    thank you

  14. #14
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,359

    Re: Populate report from date to date or empty cells for many customers

    The SUM is not wrong!

    Your data....rows 15:17 of "SVR"

    960.00
    4,650.00
    7,600.00 SUM of the above ??? 5610 I think

  15. #15
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    726

    Re: Populate report from date to date or empty cells for many customers

    The SUM is not wrong!
    tha's correct .
    I don't note it the error in summing in SVR sheet , sorry again
    thank you so much .
    have a nice weekend

  16. #16
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,359

    Re: Populate report from date to date or empty cells for many customers

    I don't care if you are in hurry or not, don't post the sample workbook with the wrong figures.
    That's only confusing people, don't be spoiled...
    As above, your carelessness causes extra work for those who reply as they cannot trust your results: so no reply from me to any of your future posts.

+ 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] Populate report from date to date for many ID
    By abdo meghari in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 12-07-2023, 07:48 AM
  2. Match a date in a date list with empty cells.
    By mkouman in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-23-2013, 09:55 AM
  3. Replies: 1
    Last Post: 05-26-2013, 09:48 AM
  4. Determine repeat customers vs. new customers based on purchase date
    By mktgdude in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-02-2013, 04:10 AM
  5. Replies: 1
    Last Post: 01-08-2013, 09:30 AM
  6. Replies: 9
    Last Post: 12-28-2012, 06:47 AM
  7. Replies: 2
    Last Post: 06-25-2010, 09:19 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