Can this formula be condensed or simplified?

easybpw

Active Member
Joined
Sep 30, 2003
Messages
437
Office Version
  1. 365
  2. 2013
Platform
  1. Windows
I have this formula that gives me the correct results I am looking for. However I am hoping there is an easier formula or one that condenses what I have and simplifies it. Here is my formula:

=SUMPRODUCT(--(B13476="CB"),--(D13476="N")--(D13476="Y"),W13476*8)+SUMPRODUCT(--(B13476="S"),--(D13476="N")--(D13476="Y"),W13476*8)+SUMPRODUCT(--(B13476="DE"),--(D13476="N"),W13476*12)+SUMPRODUCT(--(B13476="DE"),--(D13476="Y"),W13476*8)+SUMPRODUCT(--(B13476="DT"),--(D13476="N"),W13476*12)+SUMPRODUCT(--(B13476="DT"),--(D13476="Y"),W13476*8)+SUMPRODUCT(--(B13476="IB"),--(D13476="N")--(D13476="Y"),W13476*10)+SUMPRODUCT(--(B13476="OB"),--(D13476="N"),W13476*12)+SUMPRODUCT(--(B13476="OB"),--(D13476="Y"),W13476*10)


The formula looks at cells in columns B & D and if the answers are correct it multiplies column W by a certain figure. In certain parts of the formula the cell in column D can either be a Y or N. What I am hoping to find is an easier, more simplified formula than this. Is this possible or do I have it the best it can be?

Thanks for all the help. I hope I am clear enough for you.

Bill
 
Thanks I will! Thanks to Aladin and Oaktree!

Bill
 
Upvote 0

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Is this what I need?

I am very slightly familiar with VLOOKUP and SUMPRODUCT as I am with most of Excel. Currently I am using the following formula:

=SUMPRODUCT(--('05-06'!$E$9:$E$1000="F"),--('05-06'!$F$9:$F$1000="12"),--(('05-06'!$K$9:$K$1000=$BL50)+('05-06'!$N$9:$N$1000=$BL50)+('05-06'!$Q$9:$Q$1000=$BL50)+('05-06'!$T$9:$T$1000=$BL50)>0))

to derive some data from a column on sheet "05-06." In the example above, I am looking for 12th grade girls who have an entry equalling the text value in cell BL50. What I need to add is a way to further limit this result so that it chooses from one more set of values. Each student's row contains a field for "SPORT" that I'd like to incorporate somehow. I want to choose only those students who participated in a fall season sport. These sports are listed in various locations, one of which is BJ50:BJ76. Is there a simple way I can slip this into my formula without adding 27 more SUMPRODUCT arguments?
 
Upvote 0

Forum statistics

Threads
1,216,071
Messages
6,128,623
Members
449,460
Latest member
jgharbawi

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