Summing values based on drop down menu selection

RodneyC

Active Member
Joined
Nov 4, 2021
Messages
278
Office Version
  1. 2016
Platform
  1. Windows
Thanks to the help from user RasGhul in another post, I was able to create this formula:

=IFNA(INDEX('Revenue Analysis'!$O$2:$O$1201,MATCH($D$4&$D7,INDEX('Revenue Analysis'!$B$2:$B$1201&'Revenue Analysis'!$C$2:$C$1201,),0)),"")

Now I need to a modification of it for another cell in column L that it will total $M$2:$M$1201 + $N$2:$N$1201 + $O$2:$O$1201 then divide that number by 3.

Thanks in advance
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Are you able to post some data? Just to clarify are you trying to sum 3 lookup values then divide by 3?

sumproduct maybe easier
 
Upvote 0
I can post some data in the AM, but the purpose of adding the three numbers, then dividing by three is to get the average. Wife is screaming at me to come eat. I'll try and add some data in the AM
 
Upvote 0
The goal is to get an average month over a 3 month period.

This formula =IFNA(INDEX('Revenue Analysis'!$M$2:$M$1201,MATCH($D$4&$D7,INDEX('Revenue Analysis'!$B$2:$B$1201&'Revenue Analysis'!$C$2:$C$1201,),0)),"") produces the value 15,717.
This formula: =IFNA(INDEX('Revenue Analysis'!$N$2:$N$1201,MATCH($D$4&$D7,INDEX('Revenue Analysis'!$B$2:$B$1201&'Revenue Analysis'!$C$2:$C$1201,),0)),"") produces the value 23,619
This formula:=IFNA(INDEX('Revenue Analysis'!$O$2:$O$1201,MATCH($D$4&$D7,INDEX('Revenue Analysis'!$B$2:$B$1201&'Revenue Analysis'!$C$2:$C$1201,),0)),"") produces the value 16,111

Together they total 55,447. Divide that by 3 and I get 18482 for my average month. My original thought was to somehow combine those three formulas into one and produce the results that way. After sleeping on it, I think I'll have four individual columns, the first three with each of the formulas above and a forth that adds and divides the results from the first three, then I'll hide the first three.

RasGhul.... thanks for your help on this. There is one more formula on this project I'll likely need help with. I'll post a new thread when I'm ready. Appreciate your help.
 
Upvote 0
Sumproduct may be easier as long as D4 & D7 Criteria combine to make a unique value

Multiple references for Drop Down formula equation_RodneyC.xlsx
BCMNO
1NameMFRLine Seq.Order DateExpected Delivery Date
2ELTRON300496110,00044,50244,502
3ELTRON300495410,00044,52544,525
4ELTRON300496710,00044,52544,525
5ELTRON1300946115,71723,61916,111
6ELTRON300945110,00044,53844,538
7ELTRON300945810,00044,53844,538
8ELTRON300946210,00044,53844,538
9ELTRON301018210,00044,58044,580
10REECE PTY LTD - SA BURWOOD301753210,00044,58044,580
Revenue Analysis


Multiple references for Drop Down formula equation_RodneyC.xlsx
CD
4Criteria1ELTRON1
5
6
7Criteria23009461
8
9
10SUMPRODUCT18,482
Sheet2
Cell Formulas
RangeFormula
D10D10=SUMPRODUCT((('Revenue Analysis'!$B$2:$B$17=Sheet2!$D$4)*('Revenue Analysis'!$C$2:$C$17=Sheet2!$D$7)*'Revenue Analysis'!$M$2:$M$17)+(('Revenue Analysis'!$B$2:$B$17=Sheet2!$D$4)*('Revenue Analysis'!$C$2:$C$17=Sheet2!$D$7)*'Revenue Analysis'!$N$2:$N$17)+(('Revenue Analysis'!$B$2:$B$17=Sheet2!$D$4)*('Revenue Analysis'!$C$2:$C$17=Sheet2!$D$7)*'Revenue Analysis'!$O$2:$O$17))/3
 
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,749
Members
449,050
Latest member
excelknuckles

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