# Sumif Formula using data on another sheet

Status
Not open for further replies.

#### brianfosterblack

##### Board Regular
I am probably using the wrong function as it does not work
=SUMIF(Mar!A6:A1000,C12,Mar!E6:AI1000)
I have the formula on a sheet named "Clients"
The first range is the range which contains my client names on the "Mar" worksheet
C12 is the client name (Criteria) in my list of clients on the "Clients" Sheet and the formula is on the same sheet in cell I12
The second range is the columns which contain the data which is the number of hours I have worked for that client in the format "[h]:mm"

Can anyone help or am I barking up the wrong tree with this function

### Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},\$Z\$1:\$Z\$99,\$Y\$1:\$Y\$99),2,False) to lookup Y values to left of Z values.

#### etaf

##### Well-known Member
SUM() with a VLOOKUP() and Array , and using an indirect to get the sheet name from the header
=SUM(VLOOKUP(\$C4, INDIRECT("'"&D\$3&"'!\$A\$6:\$AI\$30"),{5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35}, FALSE))

BUT as i say see your other question

see here

#### Fluff

##### MrExcel MVP, Moderator
In future, please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted.

Status
Not open for further replies.

Replies
7
Views
126
Replies
1
Views
66
Replies
3
Views
62
Replies
5
Views
78
Replies
0
Views
391

1,129,675
Messages
5,637,733
Members
416,981
Latest member
PLonchar

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

### Which adblocker are you using?

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

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