+ Reply to Thread
Results 1 to 14 of 14

Consolidate invoice total for differnt store

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Consolidate invoice total for differnt store

    Hello:

    Please refer to attached file.
    I have Invoice Data for each store in sheet1.
    Column A is store#, Column C is Inv#, Column D is Date, Column E is Item# and Column P is Cost per item.
    I need formulas in Cell T3:V50 to consolidate the each unique invoice total for each store listed in Cell U1 and V1.

    Let me know if you have any questions.
    Thanks.
    Attached Files Attached Files

  2. #2
    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,946

    Re: Consolidate invoice total for differnt store

    In T3, copied down...
    =IFERROR(INDEX($D$2:$D$26,MATCH(0,INDEX(COUNTIF($T$2:T2,$D$2:$D$26),),0)),"")
    in U3, copied down and across...
    =IF(T3="","",SUMIFS($P$2:$P$26,$A$2:$A$26,U$1,$D$2:$D$26,$T3))
    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

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Consolidate invoice total for differnt store

    Hi there. see the attached file.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Consolidate invoice total for differnt store

    I was busy attaching my answer while Ford got in there first.... again... However, i did return the unique date list by a different method... Ford's is easier than mine, though...

  5. #5
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Consolidate invoice total for differnt store

    Hi Glenn and Ford:

    Thank you so much for a great help.
    Love the detailed in the formula.
    I would like to add Invoice # in column W if possible.
    Please let me know if you have any questions.
    Please let me know if you have any questions.
    Thanks.

    Riz

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Consolidate invoice total for differnt store

    If there is more than one invoice number on a day (can this happen?? If so, how do you want this handled), this won't work. If there's only one, this will do it:

    =iferror(INDEX($C$2:$C$26,MATCH(T3,$D$2:$D$26,0)),"") in W3 & drag down...

  7. #7
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Consolidate invoice total for differnt store

    Hi Guys:

    Glenn has valid point.
    To avoid the problem with one invoice on a single day, we probably need to separate out each store.
    Please refer to attached sheet column T to Z where we need formulas.
    Please let me know if you have any questions.
    Thanks.

    Riz

  8. #8
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Consolidate invoice total for differnt store

    Hello:

    forgot to attach file. I have now attached.

    Sorry

    Riz
    Attached Files Attached Files

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Consolidate invoice total for differnt store

    OK... Try this version out.
    Attached Files Attached Files

  10. #10
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Consolidate invoice total for differnt store

    Hi Glenn:

    Thanks a lot, this will work great for me.
    Riz

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Consolidate invoice total for differnt store

    You're welcome... any time!

  12. #12
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Consolidate invoice total for differnt store

    Hello Glenn:
    Sorry to bother you.
    Please refer to attached file.
    I have used your solution and seems to work with my large data file as attached.
    However, i am seeing some weird result for single date for Store# 43227 as you can see in Column AB:AD.
    I would really appreciate your help me point where the error is.

    Let me know if you have any questions.
    Thanks.
    Riz
    Attached Files Attached Files

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Consolidate invoice total for differnt store

    Hi. Try this. The absolute references weren't the best to make copying/pasting easy. Should be OK now. If not, shout. I'll be back in UK morning. Off to a wind- and rain-swept BBQ now!!
    Attached Files Attached Files

  14. #14
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Consolidate invoice total for differnt store

    Hi Glenn:

    You are my men...works great
    Thanks
    Riz

+ 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. I Want to store my invoice sheet in a separate sheet as backup database
    By Apurav in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-19-2012, 01:31 PM
  2. Code to create result based on differnt cell ref. Split and total columns.
    By Kevin P in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-20-2012, 11:37 AM
  3. Excel 2007 : How to consolidate same days and total revenue?
    By techboy2011 in forum Excel General
    Replies: 5
    Last Post: 04-12-2011, 03:30 AM
  4. Add up differnt variables in differnt named ranges
    By danielgri14 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-09-2011, 09:40 PM
  5. Total Figures of Differnt Months
    By markswan20 in forum Excel General
    Replies: 5
    Last Post: 06-01-2009, 11:28 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