Adding to or adjusting a formula

bionicle

Board Regular
Joined
Apr 23, 2009
Messages
186
Office Version
  1. 365
Platform
  1. Windows
Hi All,
Need some help please, I have the following formula thatworks as it should so no problem there however I’m trying to amend it or add a secondformula to the front of it so that the formula returns a value of zero based onspecific text in the cell C2 (house).
The working formula as it is will return a value based onthe calculation of cell V32 which can range from 500 to 100,000
=IF(($V32+$W32+SUMPRODUCT($Z$21:$AF$21,$Z32:$AF32))< data!$o$13,0,(($v32+$w32+sumproduct($z$21:$af$21,$z32:$af32))-data!$o$13)*data!$o$16)
Any help would be fab.

Steve
 
Last edited by a moderator:

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Is that your actual formula?
Looks odd to me.

Does it contain < > characters?
The forum often displays posts with < > characters incorrectly.
To get round this places spaces around the < > characters.
 
Upvote 0
formula is correct and calculates correctly. I want to add something like =IF(AND(C32="House"),"0")

when I add this to the formula I don't get the correct value out
=IF(AND(C32="house"),"0",0)&IF(($V32+$W32+SUMPRODUCT($Z$21:$AF$21,$Z32:$AF32))< data!$o$13,0,(($v32+$w32+sumproduct($z$21:$af$21,$z32:$af32))-data!$o$13)*data!$o$16)

When I add the word house to cell c32 it should return a 0any other value should return a the exact figure that I have prior to addingthe additional formula but nothing works for me.
 
Last edited by a moderator:
Upvote 0
Try
=IF(C32="house",0,IF(($V32+$W32+SUMPRODUCT($Z$21:$AF$21,$Z32:$AF32))< data!$o$13,0,(($v32+$w32+sumproduct($z$21:$af$21,$z32:$af32))-data!$o$13)*data!$o$16))

Also please note what Special-K99 said about putting spaces around the < & > signs in formulae.
I have corrected both your posts.
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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