+ Reply to Thread
Results 1 to 14 of 14

Combining Sumproduct with indirect

  1. #1
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Combining Sumproduct with indirect

    Hi,

    I have posted this previously but didnt get the required result:
    HTML Code: 
    so am trying again. I am sure i have seen this done but can not find it online.

    I have 4 different data sheets:
    Actual
    Commitment
    Q1 Forecast
    Q2 Forecast


    And I have a master sheet.

    What I would like to do is have the master sheet pull data from the data sheets depending on what sheet has been selected on the Master sheet

    e.g. On the Master sheet in cell G4 if this is “Actual” I would like it to return the numbers from the actual sheet.

    I think I need an indirect/sumproduct formula. Can anyone help please?

    I was previously helped but I do need it to include sumproduct and the ability to be able to drag the formula down and accross as my main dataset has 100+ rows
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Combining Sumproduct with indirect

    Hi there. Guess who?? is this what you'd wanted?
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Re: Combining Sumproduct with indirect

    Hi Glenn!

    Is there any way in which it can be dragged down? Would I manually have to type each row?

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Combining Sumproduct with indirect

    Quote Originally Posted by pauldaddyadams View Post
    Hi Glenn!

    Is there any way in which it can be dragged down? Would I manually have to type each row?
    If you want to drag formula down try this one:

    =INDIRECT("'"&$G$4&"'!G"&ROW($G7))

    it will start at cell G7 and by pulling formula down it will change to G8, G9 and so on.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Combining Sumproduct with indirect

    Thanks, Alkey - even I have to eat sometimes and walk away from EF...

  6. #6
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Re: Combining Sumproduct with indirect

    This worked! thanks Alkey for the inclusion and thanks once again to Glenn! A massive help

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Combining Sumproduct with indirect

    You're welcome and thank you for the feedback!

  8. #8
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Re: Combining Sumproduct with indirect

    Hi,

    At the moment it only looks at column G.

    Can I change it so I can drag across columns as well as rows?

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Combining Sumproduct with indirect

    Will you want to go beyond column Z?

  10. #10
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Re: Combining Sumproduct with indirect

    Hi

    I used this:

    =INDIRECT("'"&K$6&"'!"&CHAR(64+COLUMN(K8))&ROW(K8))

    But I will need to go past Z

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Combining Sumproduct with indirect

    Use this.

    =LEFT(ADDRESS(1,COLUMNS($A:A),4),LEN(ADDRESS(1,COLUMNS($A:A),4))-1) to generate the draggable column letter. There are other (shorter) ways of doing this, but I've had them break down in some formulas. This one has worked on all occasions (so far...).

  12. #12
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Re: Combining Sumproduct with indirect

    Perfect, I can work with this! Cheers Glenn!

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Combining Sumproduct with indirect

    You're welcome

  14. #14
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Combining Sumproduct with indirect

    Or you can use this smaller version

    =SUBSTITUTE(ADDRESS(1,COLUMNS($A:A),4),1,"")

+ 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. Combining Indirect with Countifs
    By arthurphil in forum Excel General
    Replies: 7
    Last Post: 01-27-2015, 08:13 AM
  2. [SOLVED] Combining IF, OFFSET and INDIRECT functions.
    By dowell89 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-30-2013, 05:50 AM
  3. combining a reference with the INDIRECT function
    By stl243 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 07-15-2012, 08:57 PM
  4. Replies: 8
    Last Post: 03-07-2012, 01:35 PM
  5. Replies: 6
    Last Post: 03-09-2011, 08:01 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