+ Reply to Thread
Results 1 to 8 of 8

Problem using Lookup inside Sumifs

  1. #1
    Registered User
    Join Date
    01-11-2012
    Location
    Newbury
    MS-Off Ver
    Excel 2010
    Posts
    7

    Problem using Lookup inside Sumifs

    Hello,

    The following example shows a simple worksheet and a Sumifs formula used to calculate the total net price based on 2 conditions...

    Example1.png

    However I don't want to have to bring in the Size column as this data is already in another sheet. What I would like to do is something like the following where the size is looked up from another range...

    Example2.png

    However the Lookup within the Sumifs doesn't work. I thought it would as it acts on its own like a range. Any help would be appreciated, thanks.
    Attached Files Attached Files
    Last edited by ap1980; 03-04-2017 at 09:11 AM.

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Problem using Lookup inside Sumifs

    please attach a sample excel file
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    01-11-2012
    Location
    Newbury
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Problem using Lookup inside Sumifs

    Added attached spreadsheet example

  4. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Problem using Lookup inside Sumifs

    I do not think it possible to do what you are trying to do because the ranges within SUMIFS all need to be the same size

    So the solution is to add an additional column to the table, with a looked up value for size on each row - and then all your ranges are the same size

    If you do not want the column visible, hide it.
    It's a simple lookup formula - why the reluctance to add the column?
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Problem using Lookup inside Sumifs

    As there appears to only one size per vendor then having size serves no purpose in the SUMIF.

    If there are several sizes per vendor your VLOOKUP (in Column F) will only find the first anyway.

    SUMIFS requires all Criteria Ranges to be the same size so you cannot "Lookup" as you propose.

  6. #6
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Problem using Lookup inside Sumifs

    As there appears to only one size per vendor then having size serves no purpose in the SUMIF
    @JohnTopley - (I was also headed that way but) that would not be the case if there is more than one vendor with same size

    @ap1980 - your workbook is not attached to post#3
    to attach click on REPLY, then GO ADVANCED, then MANAGE ATTACHMENTS
    ManageAttachments.jpg

  7. #7
    Registered User
    Join Date
    01-11-2012
    Location
    Newbury
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Problem using Lookup inside Sumifs

    Added attachment
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Problem using Lookup inside Sumifs

    See previous replies.

+ 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] IF formula inside SUMIFS?
    By ovehendrix in forum Excel General
    Replies: 9
    Last Post: 10-18-2023, 04:55 AM
  2. Lookup inside of IF(AND Formula Not Working
    By ajg14 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-11-2016, 11:01 AM
  3. [SOLVED] Sumifs, problem with the formula: =sumifs(c10:c200,<=today(),0)
    By Faustocruz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-08-2012, 04:26 AM
  4. Stucking on LOOKUP inside INDEX
    By megaiooo in forum Excel General
    Replies: 2
    Last Post: 06-19-2012, 11:25 AM
  5. Excel 2007 : SUM inside SUMIFS?
    By thart21 in forum Excel General
    Replies: 4
    Last Post: 09-30-2011, 01:58 PM
  6. Excel 2007 : sumifs inside of a vlookup ?
    By budchevy in forum Excel General
    Replies: 4
    Last Post: 05-15-2011, 06:33 PM
  7. Lookup inside a 2D table
    By Grissom in forum Excel General
    Replies: 2
    Last Post: 06-10-2009, 04:16 AM

Tags for this Thread

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