# Conditional Statement

#### DavidDF

##### New Member
I am trying to do a calculation based on the content of cells with the text "DC". Here is an example: if a10 = "DC", a15 = TAX RATE X b15 (5.75 * \$100.00). Any help will be appreciated.

David
This message was edited by DavidDF on 2002-10-26 15:06

### Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

##### MrExcel MVP
On 2002-10-26 15:04, DavidDF wrote:
I am trying to do a calculation based on the contents of cells with the text "DC". Here is an example: if a10 = "DC", a15 = TAX RATE X b15 (5.75 * 100.00). ANy help will be appreciated.

David

What is TAX RATE? And, What happens if A10 is not "DC"?

#### DavidDF

##### New Member
Tax Rate is a named cell that contains the current "DC" tax rate.IF content of cell is not DC (e.g. "MD" or "VA") the tax = 0.

Actually there is one more component. IF tax exempt status cell = T (true) tax = 0 even if state = "DC"

David

##### MrExcel MVP
On 2002-10-26 15:32, DavidDF wrote:
Tax Rate is a named cell that contains the current "DC" tax rate.IF content of cell is not DC (e.g. "MD" or "VA") the tax = 0.

Actually there is one more component. IF tax exempt status cell = T (true) tax = 0 even if state = "DC"

David,

I'll assume in what follows that the "TAX RATE X b15 (5.75 * 100.00)" bit is correct in essence...

In C15 enter:

=IF(StatusCell="T",0,IF(A10="DC",TAX_RATE*B15 (5.75*100.00),0))

#### DavidDF

##### New Member
Thanks for the reply. I will try this out this evening and post a small sample of how this conditional statement is actually used.

David
This message was edited by daviddf on 2002-10-26 16:01

Replies
3
Views
236
Replies
1
Views
795
Replies
6
Views
846
Replies
1
Views
73
Replies
0
Views
73

1,181,897
Messages
5,932,686
Members
436,851
Latest member
masthomas

### 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.

### Which adblocker are you using?

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

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