# INDIRECT formula cell reference

#### rlexcel101

##### New Member
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.

I need D6 to change to E6.

### Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

#### steve the fish

##### Well-known Member
The reason I haven't replied is that you haven't given what I asked for. If I'm to know what you need I need to know exactly what that formula would look like if it was in the cell to the right in the same format as your opening post.

#### rlexcel101

##### New Member
The reason I haven't replied is that you haven't given what I asked for. If I'm to know what you need I need to know exactly what that formula would look like if it was in the cell to the right in the same format as your opening post.
So..

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

Is my current formula.

-A6:A6 represents the lookup in each sheet
-\$B12 represents the criteria on the sheet where formula is
-D6:D6 represents the sum values on each sheet tab

So basically I need the ability for the D6:D6 to become cell references where I can drag and they become E6:E6, F6:F6, and then If dragged down then E7:E7, etc

Does that help?

#### steve the fish

##### Well-known Member
So column A remains column A as you drag right?

#### rlexcel101

##### New Member
So column A remains column A as you drag right?

Thank you!

This worked. My next goal is to make this match off a drop down which I have no clue how lol ideally would like to match the drop down name against the same name on sheet tab.

#### rlexcel101

##### New Member

So this might get crazy with above but is there a way to do a IF/MATCH type addition to this formula off a drop down?

So in this case:

- In C5 I have my drop down list and each names are identical to the tabs that are being rolled up. Say I just want to choose from drop for that specific name and then a “Total” drop down option as well?