IF function issue

EverReady

New Member
Joined
Jun 12, 2018
Messages
2
Below is the IF formula I am trying to use, if there is a number in column A or B greater than 0 in the I would like the result of "Good" if there is any other value in the cell then I would like the result "Unassigned". If there is a number in column A then I get the result I am looking for however if that fails and it has to look up in column B I cannot get it to produce "Unassigned". The values I am looking up with are the results of a Vlookup formula so that is why there #N/A values.

=IF(A17>0,"Good",IF(B17>0,"Good","Unassinged"))

[TABLE="width: 274"]
<tbody>[TR]
[TD]1[/TD]
[TD]#N/A[/TD]
[TD]1[/TD]
[TD]Good[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]#N/A[/TD]
[TD]2[/TD]
[TD]Good[/TD]
[/TR]
[TR]
[TD]#N/A[/TD]
[TD]4[/TD]
[TD]4[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]#N/A[/TD]
[TD]3[/TD]
[TD]Good[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]#N/A[/TD]
[TD]5[/TD]
[TD]Good[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]#N/A[/TD]
[TD]6[/TD]
[TD]Good[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]#N/A[/TD]
[TD]7[/TD]
[TD]Good[/TD]
[/TR]
[TR]
[TD]#N/A[/TD]
[TD]8[/TD]
[TD]8[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]#N/A[/TD]
[TD]9[/TD]
[TD]Good[/TD]
[/TR]
[TR]
[TD]#N/A[/TD]
[TD]10[/TD]
[TD]10[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]#N/A[/TD]
[TD]11[/TD]
[TD]Good[/TD]
[/TR]
[TR]
[TD]#N/A[/TD]
[TD]12[/TD]
[TD]12[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
</tbody><colgroup><col span="3"><col></colgroup>[/TABLE]
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
What do you want to happen if there is a #N/A error?

You might try =IF(OR(IFERROR(A1,0)>0,IFERROR(B1,0)>0), "Good", "Unassigned")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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