INDIRECT formula cell reference

rlexcel101

New Member
Joined
Apr 11, 2018
Messages
48
Hi I am having trouble referencing the cell in below formula vs. text.



=SUMPRODUCT(SUMIF(INDIRECT(""&data&"!"&"A6:A6"),$B12,INDIRECT(""&data&""!"&"D6:D6")))

data represents the line for sum values and name range of sheets (D6)..A6 is lookup on sheets and B12 is criteria.

The formula works but I have to go through ad manually change text vs dragging
 
Last edited:

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
this is an example to combine indirect() and offset(), see if you can adopt it for your problem


Book1
ABC
15Sheet2
210
315
420
525
Sheet1
Cell Formulas
RangeFormula
A1=SUM(OFFSET(INDIRECT($C$1&"!$A$1"),ROW(A1)-ROW($A$1),0,1,5))



Book1
ABCDE
111111
222222
333333
444444
555555
Sheet2
 
Upvote 0
I have the formula which works in pulling correct values I just have my reference as texts and trying to use a cell reference so I can drag formula
 
Upvote 0
What do you want the formula below the original one to be doing if you drag it down one cell? Using A6:A7, A7:A7, something else?
 
Upvote 0
Maybe this one which does A6:A6, A6:A7 etc as you drag:

=SUMPRODUCT(SUMIF(INDIRECT("'"&data&"'!A6:A"&ROWS($A$6:A6)+5),$B12,INDIRECT("'"&data&"'!D6:D"&ROWS($A$6:A6)+5)))
 
Upvote 0
Maybe this one which does A6:A6, A6:A7 etc as you drag:

=SUMPRODUCT(SUMIF(INDIRECT("'"&data&"'!A6:A"&ROWS($A$6:A6)+5),$B12,INDIRECT("'"&data&"'!D6:D"&ROWS($A$6:A6)+5)))
thanks

I inputted this formula and pulls but it’s still not dragging.

So D6 is basically one month but if I drag it stays as D6 when I need E6
 
Upvote 0
Still struggling trying to get “D6:D6” to reference as cells and drag across vs as text

Would really appreciate the help!
 
Upvote 0
You need to be answering the question in post 6. I presume you are dragging right. So what is the formula you want in the cell next to the original to be? Put it here in exactly the same way as you did for the original formula but the cell to the right. I would need to know what needs to change from cell to cell.
 
Upvote 0

Forum statistics

Threads
1,213,494
Messages
6,113,972
Members
448,537
Latest member
Et_Cetera

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