+ Reply to Thread
Results 1 to 8 of 8

how to use INDIRECT in a formula

  1. #1
    Registered User
    Join Date
    09-23-2013
    Location
    Vancouver
    MS-Off Ver
    Office 365
    Posts
    12

    how to use INDIRECT in a formula

    I am new to INDIRECT and have read how to reference a single cell using INDIRECT but I'm hoping someone can help with a formula I have. I have a sheet for each month Jan 15, Feb 15 etc. and the summary on a separate sheet. Can INDIRECT be used within the below formula? I've tried to replace the Apr 15 but as soon as I add a range I get and error.


    =SUMIFS('Apr 15'!$AD$60:$AD$190,'Apr 15'!$D$60:$D$190,$C29,'Apr 15'!$E$60:$E$190,$D29)*BJ29

    Any help is appreciated.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: how to use INDIRECT in a formula

    So your range stays the same, but you want to reference the sheet name from a seperate cell?

    Assuming your month/file name is in A2...
    =SUMIFS(indirect("'"&A2&"'!$AD$60:$AD$190"),indirect("'"&A2&"'!$D$60:$D$190").........................
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  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: how to use INDIRECT in a formula

    Describe how or why you want to use INDIRECT.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: how to use INDIRECT in a formula

    Do you have the text Apr 15 (or a date formatted to show as that) in a cell somewhere? Is the idea to change the value in that cell and thus get data from another sheet?

    Pete

  5. #5
    Registered User
    Join Date
    09-23-2013
    Location
    Vancouver
    MS-Off Ver
    Office 365
    Posts
    12

    Re: how to use INDIRECT in a formula

    Great, thanks!

  6. #6
    Registered User
    Join Date
    09-23-2013
    Location
    Vancouver
    MS-Off Ver
    Office 365
    Posts
    12

    Re: how to use INDIRECT in a formula

    I am trying sum data from various sheets ie. Apr 15. I have been using find and replace but think it would be more efficient to just have to change the name of the sheet once and have it update all columns.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: how to use INDIRECT in a formula

    upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.

  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: how to use INDIRECT in a formula

    Quote Originally Posted by mpatsis View Post
    I am trying sum data from various sheets ie. Apr 15. I have been using find and replace but think it would be more efficient to just have to change the name of the sheet once and have it update all columns.
    OK, try something like this...

    Enter the sheet name as a TEXT string in some cell.

    A1 = Apr 15

    Then, your formula would be:

    =SUMIFS(INDIRECT("'"&A1&"'!AD60:AD190"),INDIRECT("'"&A1&"'!D60:D190"),$C29,INDIRECT("'"&A1&"'!E60:E190"),$D29)*BJ29

+ 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] 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. adding Indirect formula to my current sum if array formula
    By Eastbay2 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-13-2013, 09:41 AM
  3. 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
  4. Replies: 1
    Last Post: 02-10-2012, 02:53 AM
  5. Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions
    By Mike Barlow in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10: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, 03: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-06-2005, 02:05 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