+ Reply to Thread
Results 1 to 5 of 5

Vlookup and SumIF help

  1. #1
    Registered User
    Join Date
    03-15-2012
    Location
    Boston
    MS-Off Ver
    Excel 2010
    Posts
    5

    Vlookup and SumIF help

    I am looking to get the sum of a range of accounts on a seperate tab of the same worksheet.

    Basic Example:
    The data tab contains the account numbers in column A and the numbers I want to sum are in column J.
    (A) (J)
    Account Value
    740 1 10
    740 2 20
    740 3 30
    740 4 40
    740 5 50

    What I am looking to do is on the summary tab lookup all accounts between "740 2" and "740 4" and return the sum of those accounts. In this case 90 would be the final value. The actual file is much larger but this is my basic issue.

    Thank you!

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Vlookup and SumIF help

    Give this a shot:

    =SUMIFS(J1:J5,A1:A5,">=740 2",A1:A5,"<=740 4")
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Vlookup and SumIF help

    if the accounts are grouped and in ascending order, this should work:

    =SUMIFS(B2:B6,A2:A6,">=740 2",A2:A6,"<=740 4")

    or

    =SUMIFS(B2:B6,A2:A6,">=" & X1,A2:A6,"<=" & X2) where X1 and X2 contain the parameters
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Vlookup and SumIF help

    Try this,

    In K1 & K2 enter the start & end number. If you want to start "740 2" & End is "740 4" enter 2 & 4 respectively, then use

    =SUMPRODUCT(SUMIF(A:A,"740 "&ROW(INDIRECT(K1&":"&K2)),J:J))
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  5. #5
    Registered User
    Join Date
    03-15-2012
    Location
    Boston
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Vlookup and SumIF help

    You know I had tried this and I must have been missing a step. Looks like it is working. THANK YOU!

+ 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