Average/sum with conditions...

Painzstake

New Member
Joined
Mar 25, 2014
Messages
10
abcdefghij
1Date20/11/201224/11/201217/03/2014
2Shipping Cost (USD) $ 10 $ 10 $ 10
3Discount $ 5$ 5 $ 5
4Shipping-Discount $ 'A'
$ 5 $ 5
5USD total $ 'B'
$ 100 $ 100
6AUD Total $ 105$ 105 $ 105
7
8#BoughtTotalAverage
9Vitamin D'C'
'D'
'E'

'F'
#DIV/0!
10Magnesium#DIV/0!#DIV/0! $ 1.95#DIV/0!
11Vitamin K2#DIV/0! $ 1.95#DIV/0!

<tbody>
</tbody>


Formulas in use:
Dark grey text is the current formula where applicable.

'A') =F2-F3

'B') =SUM(F9:F255)

'C') =COUNT(IF((MOD(COLUMN(F10:DA10)-COLUMN(F10),2)=0)*(F10:DA10),F10:DA10))
I would like to simplify this to a simple '=count($F9:$DA9)'

'D') {=SUM(IF((MOD(COLUMN(F11:DA11)-COLUMN(F11),2)=0)*(F11:DA11),F11:DA11))}
PHONETICALLY 'D'= f9+('A'/COUNT(F$9:F$254))+(('B'-F6)/COUNT(F$9:F$254)) <----- This formula spread across F9:DA9

'E') {=AVERAGE(IF((MOD(COLUMN(G11:IV11)-COLUMN(G11),2)=0)*(G11:IV11),G11:IV11))}
PHONETICALLY 'E'= Average(f9+('A'/COUNT(F$9:F$254))+(('B'-F6)/COUNT(F$9:F$254))) <----- This formula spread across F9:DA9. If there's also only one cell to average, I'd like it to average that eg. 1/25=25.

'F' =F10+(F$4/COUNT($F10:$F255))



Okay, I've tried semi-successfully to get a spreadsheet up and working for my orders of supplements. Up until this costing sheet it was smooth sailing... now I'm having trouble trying to work it out in an efficient manner. I've got a few conditions that I want to put into my formulas which now put the theory way over my head. But they are rather necessary because I keep getting nailed by conversion rates and shipping... So I'm trying to find out the average price of each product including it's part of any of the additional fees.

The columns are inputs for the orders dates, dollars items.
The rows are the supplements.

Column G is currently a hidden column for working out. I would like to hopefully remove it with a simplified equation.

Removing the #DIV/0!'s would be nice as well!
 
Last edited:

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
I'm going to take some liberties on the interpretation (because it looks really complicated) and offer the following.
'C'
=counta($F9:$DA9)

'D' =sum($F9:$DA9)
'E' = 'D'/'C'

<tbody>
</tbody>
If I'm not even close to what you're attempting, its because I don't understand the process.
 
Upvote 0

Forum statistics

Threads
1,221,418
Messages
6,159,791
Members
451,589
Latest member
Harold14

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