Only IF Formula

daneagle22

New Member
Joined
Apr 5, 2011
Messages
3
Is there a formula that will only calculate a number, if another variable is a certain number?<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p></o:p>
Example: C2 is a dropdown that only lists "sold", "Demo", "no show".<o:p></o:p>
column D is the formula =if(c2="sold",1,if(c2="no_sale",1,if(c2="No_Demo",0)))<o:p></o:p>
<o:p></o:p>
Column I lists all the different sales lead types, and column J shows the value for each lead type.. ie: Internet 5, walk in 10,etc.<o:p></o:p>
<o:p></o:p>
I am trying to make only the values in column J appear if "sold" is in column C, which is a 1 in column D…. The problem is I also have a “1” in column D for “no_sale” as the employee still gets credit for a demo.<o:p></o:p>
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,224,617
Messages
6,179,914
Members
452,949
Latest member
beartooth91

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