If Range (A1:A15) = "x" then add all of B1:B15

GL3

New Member
Joined
Aug 22, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi, I need help with a formula and keep getting Spill errors.

What I am trying to do is say if the range A1:A100 = Anthony and E1:E100 = 1 (on another tab) then add H1:100 (on that other tab) that meet that criteria and divide by B15 on tab where formula is entered.

Basically I need this: =SUMIF('September Log'!$E$2:$E$100,"=1",'September Log'!$H$2:$H$100)/B16 only if A1:A100 = Anthony H. and E1:E100 then =1.

In the file I do have the names as a drop down table if that has any impact.

Thank you!
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
how about

SUMIFS( 'September Log'!$H$2:$H$100 , 'September Log'!$E$2:$E$100, 1,'September Log'!$A$2:$A$100 , "Anthony H") / B16

your text talks about row1 to row100 - formula is row 2 to 100 , and also the formula is B16 and the text says B15

you can add the dropdown cell reference rather than the actual name itself

so confused
 
  • Like
Reactions: GL3
Upvote 0
Solution
how about

SUMIFS( 'September Log'!$H$2:$H$100 , 'September Log'!$E$2:$E$100, 1,'September Log'!$A$2:$A$100 , "Anthony H") / B16

your text talks about row1 to row100 - formula is row 2 to 100 , and also the formula is B16 and the text says B15

you can add the dropdown cell reference rather than the actual name itself

so confused
Yeah, I was confused too ha. I had kept tweaking it and eyes crossed but you got the idea. Your formula did the trick though so thank you very much! It mirrors the numbers from another report I am trying to simplify so that did it. Appreciate it again.
 
Upvote 0

Forum statistics

Threads
1,214,940
Messages
6,122,352
Members
449,080
Latest member
Armadillos

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