If column 1 is, then count column 2

markdoughty

Board Regular
Joined
Nov 4, 2010
Messages
226
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?
 
Upvote 0
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:
Upvote 0

Forum statistics

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