VLOOKUP & sum over multiple sections

julievandermeulen

Board Regular
Joined
Jan 25, 2020
Messages
82
Office Version
  1. 365
Platform
  1. Windows
I have a worksheet that i would like a formula for. I'm having trouble figuring out the correct formula and maybe it won't even work.

In cells AA11:AA40 I would like the sum form H11:S38 depending on the text in B11:B38 & E11:E38. For example B11 has "Loops" and E11 has "Albion" so I want the sum of (H11:R11) to be entered in cell AA11. The sum of H13:R13 to be enter in column AA depending on Text in B13 & E13.

But is it possible to also have it sum from H57:R84 (up tp 30 pages) or would each page need to be calculated separately?




 
oh shoot. I merged cells just to get the format to work better. I created a 2nd page and unmerged cells. If I can figure out formulas. I'll figure out formating later.
 
Upvote 0

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Is this what you mean?
Book1
BCDEFGHIJKLMNO
1
2
3
4
5
6Time InTime OutFieldVariety# of Buckets
74:00 AM7:00 AMLoopsAlbion444416
8LoopsAlbion444432
9LoopsShuksans32138
1012:00 PM12:30 PMFarmSweet Sunrise224
111:00 PM2:00 PMJim'sAlbion336
Sheet3
Cell Formulas
RangeFormula
O7:O11O7=IF(B7<>"",SUM(F7:M7),SUM(F7:M7)+O6)
 
Upvote 0
It should be giving you 0 already if there's no data.
Book1
BCDEFGHIJKLMNO
5
6Time InTime OutFieldVariety# of Buckets
70.1666670.291667LoopsAlbion0
8LoopsAlbion0
9LoopsShuksans0
100.50.52083333FarmSweet Sunrise0
110.541666670.58333333Jim'sAlbion0
Sheet4
Cell Formulas
RangeFormula
O7:O11O7=IF(B7<>"",SUM(F7:M7),SUM(F7:M7)+O6)
 
Upvote 0
Try this:
Book1
BCDEFGHIJKLMNO
6Time InTime OutFieldVariety# of Buckets
70.1666670.291667LoopsAlbion444416
8LoopsAlbion444432
9LoopsShuksans32138
100.50.52083333FarmSweet Sunrise224
110.541666670.58333333Jim'sAlbion336
120
130
Sheet4
Cell Formulas
RangeFormula
O7:O13O7=LET(s,SUM(F7:M7),IF(s=0,0,IF(B7<>"",s,s+O6)))
 
Upvote 0
Solution
Yes that worked!!!! thank you.

now 1 more question. is it possible to have a function for if the check box is marked, that it calculates. for example. if the box is marked yes. than sum(D23*AC2)+(o23*AC3) or do I need to format that differently?
 
Upvote 0
I can't see the checkbox with the online Excel version. I don't think I can assist further. You should start a new thread.
 
Upvote 0
You're welcome. You should update your Excel Version in your Account Details. It helps other people provide the best solution.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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