IF statement to check for value in range and if true include adjacent value in SUM

WikeMo1

New Member
Joined
Apr 15, 2019
Messages
19
Hello,

This seems like it would be easy, but maybe it's not.

I am trying to construct a daily tally list for task completion in one sheet that would then show a running total in another sheet as a "dashboard."


Here is a type of example.
https://1drv.ms/x/s!Avza4YgA-BnDjCcyut2cvLSv_6ag

In this example I would want the cells in the sheet "List and Totals" to test for wherever the value in the list in column A is present in column B of the sheet "Tally."

For whatever value is present in column B of the sheet "Tally," I would like to then have it sum the corresponding info into a running total in the proper row in "Lists and Totals."

For example, at this point I would want it to show the totals that are currently manually placed in "List and Totals."

Thanks in advance for any help!
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
See if this works for you.
Copy formula down and across.

Excel Workbook
ABCDEFG
1Item 1Item 2Item 3Item 4Item 5Item 6
2Option 1000000
3Option 2654566
4Option 3000000
5Option 410100000
6Option 5000000
7Option 6000000
List and Totals
Excel Workbook
ABCDEFGH
1DateOptionItem 1Item 2Item 3Item 4Item 5Item 6
213-Sep-19Option 2324566
314-Sep-19Option 41010
415-Sep-19Option 233
516-Sep-19
617-Sep-19
718-Sep-19
819-Sep-19
920-Sep-19
1021-Sep-19
1122-Sep-19
1223-Sep-19
Tally
 
Upvote 0
Tried and seems to be working great!
Thanks!

Now, I can't say I understand what it's doing, because I don't see how this is working according to my understanding of the "official explanation" of what SUMPRODUCT is supposed to be doing. But that's on me :)
 
Upvote 0
You're welcome.

The first two sections of the formula return an array of TRUE or FALSE.
This part ($A3=Tally!$B$2:$B$12) returns
[TABLE="width: 480"]
<colgroup><col width="480"></colgroup><tbody>[TR]
[TD="width: 480"]{TRUE;FALSE;TRUE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE}
Excel will change the TRUE, FALSE to 1 and 0 when you do a math operation, so this part
[TABLE="width: 452"]
<colgroup><col width="452"></colgroup><tbody>[TR]
[TD="width: 452"]($A3=Tally!$B$2:$B$12)*(B$1=Tally!$C$1:$H$1)*(Tally!$C$2:$H$12) returns this array to SUMPRODUCT
[TABLE="width: 763"]
<colgroup><col width="763"></colgroup><tbody>[TR]
[TD="width: 763"]{3,0,0,0,0,0;0,0,0,0,0,0;3,0,0,0,0,0;0,0,0,0,0,0;0,0,0,0,0,0;0,0,0,0,0,0;0,0,0,0,0,0;0,0,0,0,0,0;0,0,0,0,0,0;0,0,0,0,0,0;0,0,0,0,0,0} which returns the value of 6 for cell B3 in the example above.
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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