obtaining the cell values for Row and Column Refereces

Gealer

New Member
Joined
Sep 19, 2018
Messages
19
I have this formula =SUMIFS('Staff Manager DL'!$Q:$Q,'Staff Manager DL'!$L:$L,******,'Staff Manager DL'!$N:$N,'Working Patterns'!I3,'Staff Manager DL'!$J:$J,'Working Patterns'!K$1))

Where there is ****** I need to obtain this information from 2 different cells.

I have the Column Ref in K2 (lets say that is A)
Then in J3 I have the row value (lets say 3)

So I need the ******** to say A3 and then the 3 will be the variable that will change when I drag it down.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Try

=SUMIFS('Staff Manager DL'!$Q:$Q,'Staff Manager DL'!$L:$L,INDIRECT(K2&J3),'Staff Manager DL'!$N:$N,'Working Patterns'!I3,'Staff Manager DL'!$J:$J,'Working Patterns'!K$1))
 
Last edited:
Upvote 0
You could use INDIRECT but the row number will not increment as you drag the formula down.

=SUMIFS('Staff Manager DL'!$Q:$Q,'Staff Manager DL'!$L:$L,INDIRECT(K2&J3),'Staff Manager DL'!$N:$N,'Working Patterns'!I3,'Staff Manager DL'!$J:$J,'Working Patterns'!K$1))

Which cell are you going to put the formula in?
 
Upvote 0
Think this works if you drag down,



=SUMIFS('Staff Manager DL'!$Q:$Q,'Staff Manager DL'!$L:$L,INDIRECT($K$2&$J$3+ROW(A1)-1),'Staff Manager DL'!$N:$N,'Working Patterns'!I3,'Staff Manager DL'!$J:$J,'Working Patterns'!K$1))
 
Last edited:
Upvote 0
Thanks for the reply.

In the end I managed to get around it with =SUMIFS('Staff Manager DL'!$I:$I,'Staff Manager DL'!$K:$K,INDEX($A:$G,$J3,K$2),'Staff Manager DL'!$F:$F,'Working Patterns'!$I3,'Staff Manager DL'!$B:$B,'Working Patterns'!K$1)

I substituted the A with an 1 (b=2 ect) and that worked as well.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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