Closed Thread
Results 1 to 5 of 5

help using indirect()

  1. #1
    Registered User
    Join Date
    11-19-2019
    Location
    ROK
    MS-Off Ver
    365
    Posts
    48

    help using indirect()

    I'm new to the indirect function. If I put a full address of a cell in another cell I have gotten it to work. But now I have part of the address (the row) in a cell and need to be able to combine that with what I know.

    I have a table with names in column B and dates in row 1. The rest of the tables is the sales amount for the employee listed in column B on the date in row 1. (see data sheet). I want to find the max and the average for certain days. I can do this if the names are in the same order in the report and the data file. but this isn't always the case.

    I can use a match to find the right row to look.
    =MATCH(A2,data!B:B,0)
    So I thought using this knowledge I could use indirect. exceljet.net had an article at formula/indirect-named-range-different-sheet

    So I tried this: {=MAX(MAXIFS(INDIRECT("'data'!$c'"&B2&":$N"&B2),data!$C$1:$N$1,report!$I$1:$L$1))}
    but I got #REF



    The file is attached.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    11-19-2019
    Location
    ROK
    MS-Off Ver
    365
    Posts
    48

    Re: help using indirect()

    Solved my own problem. I had an extra ' in there that was messing things up.
    Change to:
    {=MAX(MAXIFS(INDIRECT("'data'!$c"&B2&":$N"&B2),data!$C$1:$N$1,report!$I$1:$L$1))}

    And it worked perfectly. Sorry to waste everyone's time

  3. #3
    Forum Contributor jomaor1's Avatar
    Join Date
    10-08-2018
    Location
    Brasil
    MS-Off Ver
    Excel 2016
    Posts
    177

    Re: help using indirect()

    you just got one little thingy wrong

    MAX(MAXIFS(INDIRECT("'data'!$c'"&B2&":$N"&B2),data!$C$1:$N$1,report!$I$1:$L$1))

    that ' shouldn't be there,

    Cheers!
    John.

    "I excel at jumping to conclusions"

  4. #4
    Registered User
    Join Date
    06-01-2022
    Location
    Esbjerg, Denmark
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (16.0.14326.20936) 64-bit
    Posts
    3

    Re: help using indirect()

    I use this formula to find a minimum value in a column of numbers: =MAXIFS(BG7:BG10000;BG7:BG10000;"<1.04") giving the correct answer 1.03822

    So works fine - but I would like to be able to change the <1.04 criteria using an external cell.....

    I have tried this: =MINIFS(BG7:BG10000;BG7:BG10000;INDIRECT("">"&A2&""")) but I just get a clean 0 as answer (A2 cell contains the 1.04 value).

    Could you pls advice?

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: help using indirect()

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] INDIRECT Function with multiple sheets - SUMIF, INDIRECT & MATCH
    By DJDRU in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-07-2014, 08:42 AM
  2. Sum of indirect sheet names with multiple cells (SUM, INDIRECT,SHEETNAME in cell)
    By a1b2c3d4e5f6g7h8 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-12-2013, 08:42 AM
  3. Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions
    By Andy Wiggins in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 12:05 PM
  4. Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions
    By Mike Barlow in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. [SOLVED] Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions
    By Mike Barlow in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  6. Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions
    By Mike Barlow in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. [SOLVED] Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions
    By Mike Barlow in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 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