+ Reply to Thread
Results 1 to 8 of 8

SumIF/ Lookup Help

  1. #1
    Registered User
    Join Date
    01-13-2014
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    7

    SumIF/ Lookup Help

    Really stuck and lucking for some help.

    I have a spread sheet I use for tracking project man-hours by week by sub project task, Weeks are listed across row 1, projects are listed down column A and sub projects down column B.

    What I would like to do is enter a week and a project input and for the formula to the search based on two criteria a column based on a week number and multiple rows based on a project number and then sum the results,

    If I've attached this sample picture correctly you can see what I mean , the answer should be 19.

    Sample.jpg

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: SumIF/ Lookup Help

    Try this
    =SUMPRODUCT(($A$3:$A$9=$K$2)*OFFSET($B$3:$B$9,0,$K$3))
    Not tested

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: SumIF/ Lookup Help

    Maybe this...

    =SUMIF(A3:A9,K2,INDEX(C3:G9,0,K3))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    01-13-2014
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: SumIF/ Lookup Help

    Thanks guys, that worked perfectly right up until I dropped it into my working sheet and the week number changed to week 30, that's why I thought some sort of lookup. sorry my example wasn't clear
    Sample 2.jpg

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: SumIF/ Lookup Help

    Try this version...

    =SUMIF(A3:A9,K2,INDEX(C3:G9,0,MATCH(K3,C1:G1,0)))

  6. #6
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: SumIF/ Lookup Help

    Or try
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    01-13-2014
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: SumIF/ Lookup Help

    Guys, thank you both very much, went with yours Tony in the end, felt being able to have an exact match made it a bit more bulletproof in the event someone forgot a week it can get confused.

    Thanks again

    Brian

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: SumIF/ Lookup Help

    You're welcome. Thanks for the feedback!

+ 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. Sumif Lookup
    By lorber123 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-11-2016, 12:23 PM
  2. SUMIF/LOOKUP help
    By sccrbrg in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-28-2014, 03:16 PM
  3. [SOLVED] SumIF – 3 way lookup
    By pauldaddyadams in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-25-2013, 11:28 AM
  4. Lookup or SUMIF ??
    By rufusf in forum Excel General
    Replies: 2
    Last Post: 02-26-2009, 08:02 AM
  5. lookup and sumif?
    By mheinmiller in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-16-2008, 03:40 PM
  6. sumIf or lookup?
    By Spaztik in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-18-2008, 10:35 PM
  7. sumif? lookup?
    By Duane in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-30-2005, 03:06 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