Help with 3D Formula to extract text using INDIRECT() and IF()

RAF43

Board Regular
Joined
Sep 20, 2013
Messages
58
Hi All -

I'm working with a workbook that has 20 spreadsheets (tabs) and I want to search all 20 and extract a given text that is in 1 cell in each spreadsheet if the critera is met. I'm using the below formula to extract and sum (24hr) time in all 20 sheets, but I can't seem to modify it to work for text ?

=SUMPRODUCT(SUMIF(INDIRECT("'"&$N$3:$N$22&"'!E3:E36"),H4,INDIRECT("'"&$N$3:$N$22&"'!F3:F36")))

I have a table built ($N$3:$N$22) that matches the text (names) used in the spreadsheet tabs.
H4 is text and the SUMIF criteria.

I thought a simple approach would be to use a IF() statement:
=IF(INDIRECT("'"&$N$3:$N$22&"'!D3:D36=H4"),INDIRECT("'"&$N$3:$N$22&"'!A1"),"")

The above generates a #REF! error. Can the IF() function be used in a 3D formula along with Indirect() ?
How would I integrate the criteria (D4) inside the Indirect() formula ?

Many Thanks - first post !
Randy
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,214,830
Messages
6,121,839
Members
449,051
Latest member
excelquestion515

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top