Formula Help

mahmed1

Well-known Member
Joined
Mar 28, 2009
Messages
2,302
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi Guys

I have a range n2 - 49 where i should enter the value of £50. However there are some instances where i am entering less than £50. Some are left blank as they have not been filled in yet.

e.g

50
50
35
20
20
35
50
50

What i need to sum up is the difference between the values which have payed less than 50.

i.e 35 is 15 less than 50
20 is 30 less than 50
20 is 30 less than 50
35 is 15 less than 50

15
30
30
15

£90

Count cells if not blank

Thanks
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hi Guys

I have a range n2 - 49 where i should enter the value of £50. However there are some instances where i am entering less than £50. Some are left blank as they have not been filled in yet.

e.g

50
50
35
20
20
35
50
50

What i need to sum up is the difference between the values which have payed less than 50.

i.e 35 is 15 less than 50
20 is 30 less than 50
20 is 30 less than 50
35 is 15 less than 50

15
30
30
15

£90

Count cells if not blank

Thanks
Try this...

=SUMPRODUCT(--(N2:N49<>""),50-N2:N49)
 
Upvote 0
Hi there,

This formula should work for you:

=SUM(50-N2:N49)

It is an array formula, so you'll need to enter it by pressing SHIFT + CTRL.

Let me know if you have any further queries.
 
Upvote 0
Thank You all, i'm a bit tired, don't why i did not think of that. I think il just call it a night :biggrin:

Thank You
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,152
Members
452,891
Latest member
JUSTOUTOFMYREACH

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