+ Reply to Thread
Results 1 to 10 of 10

Need a formula to calculate all total purchase from different sheets by acct number

  1. #1
    Registered User
    Join Date
    10-23-2013
    Location
    makati, philippines
    MS-Off Ver
    Excel 2010
    Posts
    71

    Exclamation Need a formula to calculate all total purchase from different sheets by acct number

    Hello, as the title suggest...kindly please help me on the formula for calculating total purchase by acct number from different sheets, the sample scenario i provided was only consist of 1 sheet but i know but i know guys you know how this thing works, i am currently looking for possibility of sumif or sumifs but i couldnt get the hang of it..please help me i've been on a dilema on this ..thanks
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    09-24-2013
    Location
    Poland
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Need a formula to calculate all total purchase from different sheets by acct number

    Here you have UDF
    Please Login or Register  to view this content.
    You shoul use this function, where without sheet AFTER. And after calculating this function you shoul past values.
    For this problem better would be macro.

  3. #3
    Registered User
    Join Date
    09-24-2013
    Location
    Poland
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Need a formula to calculate all total purchase from different sheets by acct number

    Here you have UDF
    Please Login or Register  to view this content.
    You shoul use this function, where without sheet AFTER. And after calculating this function you shoul past values.
    For this problem better would be macro.

  4. #4
    Registered User
    Join Date
    10-23-2013
    Location
    makati, philippines
    MS-Off Ver
    Excel 2010
    Posts
    71

    Re: Need a formula to calculate all total purchase from different sheets by acct number

    thanks for your reply and time for giving solution, however i still don't know how to use UDF yet ehehe how can i use this or much better if you have simplier formula or other way for this hehe thanks really appreciate this

  5. #5
    Registered User
    Join Date
    10-23-2013
    Location
    makati, philippines
    MS-Off Ver
    Excel 2010
    Posts
    71

    Re: Need a formula to calculate all total purchase from different sheets by acct number

    need help please...i really need this

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Need a formula to calculate all total purchase from different sheets by acct number

    What i suggest is just consolidate all the sheets data in to a single sheet as a continuous data. So that the result can be arrived easily by using a simple SUMIF().

    If consolidating of data is not possible then we have to go for a complicated approach like VBA or Using Named Range With Indirect Combination for getting the result.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  7. #7
    Registered User
    Join Date
    09-24-2013
    Location
    Poland
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Need a formula to calculate all total purchase from different sheets by acct number

    Consolidation is the best way, of course. The second is run a macro.
    There are many, many examples, how create UDF, i.e.
    http://www.youtube.com/watch?v=czgrImckn2g

  8. #8
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Need a formula to calculate all total purchase from different sheets by acct number

    On AFTER Tab and in Cell D2:

    =SUM((File2!$A$2:$A$19=A2)*(File2!$C$2:$C$19))

    Array Formula (hit CTRL-SHIFT-ENTER together)

    and copied down

    Azumi

  9. #9
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Need a formula to calculate all total purchase from different sheets by acct number

    Pl see attached file.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    10-23-2013
    Location
    makati, philippines
    MS-Off Ver
    Excel 2010
    Posts
    71

    Re: Need a formula to calculate all total purchase from different sheets by acct number

    Quote Originally Posted by :) Sixthsense :) View Post
    What i suggest is just consolidate all the sheets data in to a single sheet as a continuous data. So that the result can be arrived easily by using a simple SUMIF().

    If consolidating of data is not possible then we have to go for a complicated approach like VBA or Using Named Range With Indirect Combination for getting the result.
    Thanks for your reply and ideas bro (y)

    Quote Originally Posted by hudibyk View Post
    Consolidation is the best way, of course. The second is run a macro.
    There are many, many examples, how create UDF, i.e.
    http://www.youtube.com/watch?v=czgrImckn2g
    thanks for this, i watched it and hope i can use this someday hehe

    Quote Originally Posted by kvsrinivasamurthy View Post
    Pl see attached file.
    Quote Originally Posted by azumi View Post
    On AFTER Tab and in Cell D2:

    =SUM((File2!$A$2:$A$19=A2)*(File2!$C$2:$C$19))

    Array Formula (hit CTRL-SHIFT-ENTER together)

    and copied down

    Azumi
    thanks for the sample @Azumi and kvsrinivasamurthy

    wow thanks for your replies guys sorryy for the late reply as i took a leave on my work and just got return today ehhe...it works fine now using the formula by Azumi and kvsrinivasamurthy..really appreciate the time and effort on this...+ rep to all of you thanks again :D

+ 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 for Purchase and sale total in current stock
    By vivek_vx in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-11-2016, 07:13 PM
  2. [SOLVED] Calculate total from two sheets
    By Anibha Jain in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-16-2013, 03:03 AM
  3. Replies: 16
    Last Post: 02-24-2012, 03:08 PM
  4. Formula to Calculate total number of formulas in a workbook
    By bluke12312 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-13-2010, 04:43 PM
  5. Replies: 5
    Last Post: 08-06-2009, 05:17 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