+ Reply to Thread
Results 1 to 3 of 3

Formula Range to reference cell value

  1. #1
    Forum Contributor
    Join Date
    02-20-2014
    Location
    Ireland
    MS-Off Ver
    Excel 2013
    Posts
    108

    Formula Range to reference cell value

    Hi All,

    I am trying to complete a countif function

    I have a set of named ranges as the months of the year

    January = A2:GT32
    February = A33:GT61
    etc......

    I have a drop down on another sheet (A1) that has the named ranges names, I need my countif formula to read "=countif(A1,A3)", where "January" is selected in cell A1

    However i need it to return "A1" as the named range and not look at it as a single cell

    the end result been the user can pick a month and the formula will return information from that named range

    Im not sure if this is straight forward

    Thanks in advance for any replies

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Formula Range to reference cell value

    In another cell cant you determine what range it should be based on the month selected?
    something like

    =COUNTIF(IF(A1="Jan",A2:A32,IF(A1="Feb",A33:A61..etc,A3)
    or
    =COUNTIF(INDIRECT(LOOKUP(A1,{"Jan","Feb","Mar"...},{"A2:A32","A33:A61","A62:A90"...})),A3)
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Contributor
    Join Date
    02-20-2014
    Location
    Ireland
    MS-Off Ver
    Excel 2013
    Posts
    108

    Re: Formula Range to reference cell value

    thanks for your quick reply,

    that works perfect, should have figured it out myself

    Monday Blues

    Thanks, Rep Added

+ 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. Using a cell reference to change the range of the formula
    By boyesmar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-01-2015, 01:12 PM
  2. [SOLVED] Using the value in a cell to reference the range of cells to use in a formula
    By dannybten23 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-07-2014, 09:26 AM
  3. Formula to bring in a cell range from a cell reference
    By Backroomgeeza in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-13-2012, 10:58 AM
  4. Trying to put cell range reference in formula
    By corwinjk in forum Excel General
    Replies: 2
    Last Post: 05-15-2012, 06:02 PM
  5. using a dummy cell to reference a range into a formula
    By talderman in forum Excel General
    Replies: 1
    Last Post: 06-29-2006, 04:15 PM
  6. [SOLVED] More than 1 cell reference/range in formula
    By 0-0 Wai Wai ^-^ in forum Excel General
    Replies: 2
    Last Post: 09-07-2005, 03:05 PM

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