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

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
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,215,422
Messages
6,124,811
Members
449,191
Latest member
rscraig11

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