# If column 1 is, then count column 2

#### markdoughty

##### Board Regular
Trying to get the below to look at column E on sheet1, to check the cell is "Monday" and if so to count the value in sheet1 column L, summarizing the total on sheet2 column D.

Any help appreciated, many thanks

Mark...

=IF('Sheet1'!E:E,"Monday",Sheet2!D:D,'Sheet1'!L:L)

### Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
What does "count the value in sheet1 column L, summarizing the total on sheet2 column D." mean?

Have you tried =COUNTIF?

Give a try with this formula..

=SUMPRODUCT((E:E="Monday")*(L:L))

Well we were both thinking on the same lines.
Ive managed to make this work for the above....

=SUMIF('Exported Data'!E:E,"Monday",'Exported Data'!N:N)

But to complicate it one more stage, I now need to add N:N*Q:Q as as last calculation , any suggestions?

Last edited:
edited

Last edited:

Replies
4
Views
412
Replies
3
Views
327
Replies
2
Views
305
Replies
4
Views
475
Replies
2
Views
372

1,217,331
Messages
6,135,938
Members
449,973
Latest member
jarzack

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