MINDSTORM77
New Member
- Joined
- Aug 25, 2023
- Messages
- 4
- Office Version
- 365
- Platform
- Windows
Hi Guys,
I am trying to work out a sumif type function for an excel app that i need to update.
Basically i have cell B4&B5 which have a user input as below for example,
B4 = £20,000
B5 = £15,000
Given a set of macro parameters, cell B14 will display the mean of these two figures - £17,500
Depending on another user cell input of vehicle age however, sometimes, B14 will be a reduced figure which is less than mean
I want a cell to display either "0" or "No" if the mean is correct, otherwise display the mean less the value in cell B14
The example i give is;
B4 = £20,000
B5 = £15,000
B14 displays a reduced rate of £13,500 now so i want my new call to display £1,500 (£17,500-£13,500)
My initial formula was =IF(SUM(B4:B5)/2-B14=SUM(B4:B5),"0",SUM(B4:B5)/2-B14)
This displays the reduced rate ok, but just displays the mean as well if there is no reduced rate instead of the 0 or preferably the word No ....
I understand formatting the cell to display either a currency or general alphabet is probably not possible so will have to settle for 0
Any help is greatly appreciated in advance.
I am trying to work out a sumif type function for an excel app that i need to update.
Basically i have cell B4&B5 which have a user input as below for example,
B4 = £20,000
B5 = £15,000
Given a set of macro parameters, cell B14 will display the mean of these two figures - £17,500
Depending on another user cell input of vehicle age however, sometimes, B14 will be a reduced figure which is less than mean
I want a cell to display either "0" or "No" if the mean is correct, otherwise display the mean less the value in cell B14
The example i give is;
B4 = £20,000
B5 = £15,000
B14 displays a reduced rate of £13,500 now so i want my new call to display £1,500 (£17,500-£13,500)
My initial formula was =IF(SUM(B4:B5)/2-B14=SUM(B4:B5),"0",SUM(B4:B5)/2-B14)
This displays the reduced rate ok, but just displays the mean as well if there is no reduced rate instead of the 0 or preferably the word No ....
I understand formatting the cell to display either a currency or general alphabet is probably not possible so will have to settle for 0
Any help is greatly appreciated in advance.