If statement

sythong

Active Member
Joined
Jun 26, 2004
Messages
324
Hi to all Excel friends again

Am trying to accomplish the following:-

Cell F Cell H Cell I Cell J
Status Amt Taxable Exempt

Exempt 100 - 100
Taxable 50 50 -

I have managed to come up with
=IF(F28="Exempt",H28,""-"") for Cell J which works fine
but when copied to Cell I with modification of =IF(F24="Pay",H24,""-"")
it returns #VALUE when it should read 50

I am of the feeling that a nested if statement for Cell I and J would work if properly
syntax. Appreciate any suggestions as now manually keying in and prone to
error as sometime posted to wrong column.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hi sythong,

It should not read 50 as your value is "Taxable" when formula reads if F24="Pay" then return 50.

Chenge that to
=IF(F24="Pay",H24,"-")
instead
=IF(F24="Pay",H24,""-"")

that will read -.
 
Upvote 0
Oops dopey me.

Robert Thanks very much for pointing out the error.

Cheers and happy weekend


Thong
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

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