Find or Average Formula

Jagat Pavasia

Active Member
Joined
Mar 9, 2015
Messages
404
Office Version
  1. 2021
Platform
  1. Windows
1.JPG

2.JPG




Hi I have data as above excel Image.

I want that if I type invoice number in E16 than it should find from A3 to A12.
After that find date as in D19 from E3 to E12, I3 to I12 & M3 to M12 and sum of Days (which is from C3:C12, G3:G12, K3:K12)
After sum of days than divide by count how many same date found.

In, Second Image I typed Manually answer, So, please help me to which formula can I input in E19 ??
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
In E19 copied down
Excel Formula:
=SUMPRODUCT(($A$3:$A$12=$E$16)*(($C$3:$C$12*($E$3:$E$12=$D19))+($G$3:$G$12*($I$3:$I$12=$D19))+($K$3:$K$12*($M$3:$M$12=$D19))))/SUMPRODUCT(($A$3:$A$12=$E$16)*($C$3:$N$12=$D19))
 
Upvote 0
In E19 copied down
Excel Formula:
=SUMPRODUCT(($A$3:$A$12=$E$16)*(($C$3:$C$12*($E$3:$E$12=$D19))+($G$3:$G$12*($I$3:$I$12=$D19))+($K$3:$K$12*($M$3:$M$12=$D19))))/SUMPRODUCT(($A$3:$A$12=$E$16)*($C$3:$N$12=$D19))
yes, it is working as I want....

thank you so much kvsrinivasamurthy.....

Now, I want another please help.



1.JPG

2.JPG


Now I want, answer of amount in F19 with same condition as we have enter formula in E19.
But, in addition that sum all negative amount and sum all positive amount and answer which is bigger.


for example :
-25$ , -50$, -10$, 150$ = than answer 65$
100$, -25$, -150$ = than answer -75$
-25$, -10$, -5$
= than answer -40$
 
Last edited:
Upvote 0
In F19 copied down
Excel Formula:
=SUMPRODUCT(($A$3:$A$12=$E$16)*(($D$3:$D$12*($E$3:$E$12=$D19))+($H$3:$H$12*($I$3:$I$12=$D19))+($L$3:$L$12*($M$3:$M$12=$D19))))
 
Upvote 0
Solution

Forum statistics

Threads
1,221,510
Messages
6,160,230
Members
451,632
Latest member
purpleflower26

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