+ Reply to Thread
Results 1 to 3 of 3

Indirect formula combined with {} formula

Hybrid View

  1. #1
    Registered User
    Join Date
    07-01-2008
    Location
    barcelona
    Posts
    2

    Indirect formula combined with {} formula

    Hi All,

    Fisrt of all, I appologise for not knowing the name of the second formula that I want to combine, I'll leave an example instead.

    =SUM((Pep!H10:H12=Summary!E1)*(Pep!I10:I12))

    Now, the issue:

    I'm trying to combine the indirect formula with this one, trying to pick data from another sheet by doing the following:

    =SUM(INDIRECT(E2&"!"&"$h$10"&":"&"$h$12"&"="&$E$1&")"&"*"&"("&E2&"!"&"$i$10"&":"&"$i$12"))

    E2 = PEP
    E1 = XYZ

    In the formula without the indirect I would pick the XYZ in column "H" and sum the amounts of the comumn "I".

    Excel accepts the formula but its giving me a REF

    Could anyone help me out on this one?

    Thanks,
    H

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    This isn't exactly what you want, but I think it's closer.

    =SUMPRODUCT( (INDIRECT(E2 & "!" & $H$10 & ":" & $H$12) = INDIRECT($E$1) ) * INDIRECT(E2 & "!" & $I$10 & ":" & $I$12))

    Display the Auditing toolbar and watch the formula evaluate.

  3. #3
    Registered User
    Join Date
    07-01-2008
    Location
    barcelona
    Posts
    2
    Thank you very much.

    It was indeed close. The formula worked like this:

    =SUMPRODUCT((INDIRECT(E2&"!"&"$H$10"&":"&"$H$12")=($E$1))*INDIRECT(E2&"!"&"$I$10"&":"&"$I$12"))

    Regards,
    H

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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