+ Reply to Thread
Results 1 to 7 of 7

Excel Function SUMIF with Look up functions or Index and Match

  1. #1
    Registered User
    Join Date
    03-01-2018
    Location
    Sydney
    MS-Off Ver
    Microsoft Office Professional Plus 2013
    Posts
    10

    Excel Function SUMIF with Look up functions or Index and Match

    All,

    I have a set of data that looks like the following table. I want to be able to sum all the values that fall under the Alphas, Betas, X-Rays etc. for a particular specimen. I suppose the SUMIF function with INDEX and MATCH should work, however i am unable to put the formula together. Any help would be much appreciated.

    Alpha Beta X-Ray Gamma Neutron
    Alpha Beta Gamma Neutron Alpha Beta X-Ray Beta X-Ray Gamma Neutron Beta X-Ray Alpha Beta X-Ray Gamma Neutron Beta X-Ray Alpha Neutron Gamma
    Spec A 1 2 4 3 6 12 10 8 3 12 8 9 2 6 8 5 10 7 5 8 4 10 12
    Neutron X-Ray Gamma Neutron Alpha Beta Gamma Alpha X-Ray Gamma Neutron Beta X-Ray Alpha Beta X-Ray Gamma Beta Gamma X-Ray Beta Alpha Neutron
    Spec B 8 9 12 7 10 4 6 7 10 7 6 8 8 1 12 5 4 8 10 3 9 8 6
    Neutron X-Ray Gamma Neutron Alpha Beta Gamma Alpha X-Ray Gamma Neutron Beta X-Ray Alpha Beta X-Ray Gamma Beta Neutron X-Ray Alpha Gamma Beta
    Spec C 4 4 8 7 8 10 9 12 6 1 5 2 12 8 6 12 8 10 7 4 5 12 8


    Thanks
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Excel Function SUMIF with Look up functions or Index and Match

    Put this in C4 and copy across and down:
    Please Login or Register  to view this content.
    Corrected

    Pete
    Last edited by PeteABC123; 03-01-2018 at 05:40 PM.

  3. #3
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Excel Function SUMIF with Look up functions or Index and Match

    woops too slow and slightly off target too
    If you want something done right... find a forum and ask an online expert.

    Time flies like an arrow. Fruit flies like a banana.

  4. #4
    Registered User
    Join Date
    03-01-2018
    Location
    Sydney
    MS-Off Ver
    Microsoft Office Professional Plus 2013
    Posts
    10

    Re: Excel Function SUMIF with Look up functions or Index and Match

    Hi Pete,

    Thanks for your response. I noticed that formula isn't yielding the desired result as you drag down. For eg; Spec B, X-Ray is returned as 32 instead of 35; Spec B, Gamma is returned as 29 instead of 39 and so on. It is working alright for the first row only.

    Sample file attached.

    Regards,
    Sontu
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,918

    Re: Excel Function SUMIF with Look up functions or Index and Match

    Len(e2)=6

    len(ab6)=5

  6. #6
    Registered User
    Join Date
    03-01-2018
    Location
    Sydney
    MS-Off Ver
    Microsoft Office Professional Plus 2013
    Posts
    10

    Re: Excel Function SUMIF with Look up functions or Index and Match

    Wow! Something as small as that could stuff up a formula. Thanks for bringing it into my attention; much appreciated. It works perfectly now; not sure why i was complicating things with Index and Match lol.

    Thanks to Pete too.

    Cheers,
    Sandeep

  7. #7
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Excel Function SUMIF with Look up functions or Index and Match

    Thanks for catching that Phuocam. I didn't check the other headings, or validate the results. Nice job.
    Glad to help Sontu.

    Please mark the thread as solved, if it is.

    Pete
    Last edited by PeteABC123; 03-05-2018 at 01:04 PM.

+ 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] SUMIF, INDEX & MATCH function
    By kashaikh78 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-26-2017, 04:38 PM
  2. multiple if functions with index, match function.
    By ctguards1987 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-31-2017, 09:59 AM
  3. Nexted functions: Using the IF, INDEX, and Match function together
    By agroeneveld in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-26-2016, 04:52 PM
  4. [SOLVED] SUMIF function combined with INDEX/MATCH
    By nickiw579 in forum Excel General
    Replies: 7
    Last Post: 01-27-2015, 11:40 PM
  5. UDF Lookup function as an alternative to array functions & match/index
    By Andrew_Harris in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-15-2012, 09:34 PM
  6. Sumif, index and match function
    By ronlau123 in forum Excel General
    Replies: 2
    Last Post: 07-06-2011, 05:27 AM
  7. Using the Index and Match Functions with a Like Function
    By Coldsteel in forum Excel General
    Replies: 4
    Last Post: 07-14-2010, 08:36 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