+ Reply to Thread
Results 1 to 2 of 2

Referring to named ranges in SUMIF (potentially address function required)

  1. #1
    Registered User
    Join Date
    08-01-2019
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    10

    Referring to named ranges in SUMIF (potentially address function required)

    Hi all,

    Would greatly appreciate some help in referring to named ranges . Searched around for a long time to no avail. Please see excel file as reference.

    I have created a named range called 'animals' (B3:B6) and I would like to create a sumif formula by referring to a cell which then refers to that named range.

    e.g. =sumif(animals,"dog",C3:C6) gives me 1. This is great, however I am trying to replace animals here with a cell (I am doing this because in relaity i have more than 1 named range and would like to drag down instead of manually writing the named range).

    I have tried to use address,row,rows,column,columns function to give me the range for my sumif but does not work as seen in cell E6 (address function in E2)

    When I enter in E6 =sumif(E2,"dog"C3:C6) i get 0 instead of 1

    Would appreciate any help with this.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Referring to named ranges in SUMIF (potentially address function required)

    Assuming you want to put the named range name in a cell, then reference that, then you can use the INDIRECT function.

    For example: put "animals" in cell E1, then use:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

+ 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. SUMPRODUCT for tiered calculation referring to cells or named ranges
    By gottahaveagoal in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-17-2019, 01:20 PM
  2. [SOLVED] Referring to named ranges (again)
    By malcmail in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-06-2018, 06:10 AM
  3. SUM using ADDRESS function and Named Ranges
    By excelroofing in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-24-2015, 08:54 PM
  4. Referring to Named Ranges defined with OFFSET()
    By jaskamakkara in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-20-2013, 03:55 AM
  5. Functions referring to Named Ranges
    By taa in forum Excel General
    Replies: 2
    Last Post: 03-25-2011, 04:17 PM
  6. [SOLVED] Referring to named ranges in a macro
    By Pontificateur in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-16-2005, 02:05 PM
  7. Referring to named ranges
    By Hardy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-25-2005, 08:05 AM

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