Simple Formula

ExcelRoy

Well-known Member
Joined
Oct 2, 2006
Messages
2,540
Office Version
  1. 365
Platform
  1. Windows
Hi Guys,

I have a simple formula that returns a #VALUE error

How do i change to avoid the error

=IF(SUM(Q146-Q142)="","",SUM(Q146-Q142))

Thanks
 
As an example of what is in Q16

=IF(N16="","",SUM(B16*N16))

B16 being "Quantity"
N16 being "Unit Price"

Thanks
 
Upvote 0

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.
As an example of what is in Q16

=IF(N16="","",SUM(B16*N16))

B16 being "Quantity"
N16 being "Unit Price"

Thanks

Modify it to...

=IF(N6="","",B16*N16)

I think the following would cope with all these blanks you create...

=IF(AND(Q142="",Q146=""),"",Q146-Q142)

which requires that we have numbers in both Q142 and Q146.
 
Upvote 0
Hi Aladin,

I will use helper rows to achieve my goals on this one. Not ideal> But a solution

How would i return a "" result with the following formula if i have a "#DIV/0!" error

=IF(W153=0,"",W153)

Thanks
 
Upvote 0
Try this...

=IF(COUNT(Q142,Q146)<2,"",Q146-Q142)

HHhmmm

I must be doing something wrong, none of these formula's work?
They all show "" and no sums?

Q142 is an overall total of merged cells (Q15:S138) with specific wording
If that formula returns a blank then that means the target cells do not contain numeric numbers.

What does "with specific wording" mean?
 
Upvote 0

Forum statistics

Threads
1,225,149
Messages
6,183,184
Members
453,151
Latest member
Lizamaison

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