Combining two working IF Statements into a nested if statement produces #VALUE!

mramo

New Member
Joined
Feb 17, 2015
Messages
14
Hello I have two very simple IF statements that work independently of each other and references its results from the same Row.

=IF(A2=B2,"High Quality", "Transcoded")
=IF(A2<320,"Low Quality","High Quality")

When I try to combine them in a nested IF, I receive a #VALUE! error. Is there something I am doing wrong?

I am using Excel 2013.
 

Attachments

  • Capture.JPG
    Capture.JPG
    32.9 KB · Views: 6

Excel Facts

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

VBA Code:
=IF(A2=B2,"High Quality",IF(A2<320,"Low Quality","High Quality"))
 
Upvote 0
Try;

VBA Code:
=IF(A2=B2,"High Quality",IF(A2<320,"Low Quality","High Quality"))
Hi thanks for this.

However the formula is missing the return value of "Transcode" if A2 doesnt equal B2.

=IF(A2=B2,"High Quality", "Transcoded")
 
Upvote 0
Ahh sorry, I missed that. Does this work for you?

VBA Code:
=IF(A2=B2,"High Quality",IF(A2<320,"Low Quality","Transcoded"))
 
Upvote 0
Solution
Ahh sorry, I missed that. Does this work for you?

VBA Code:
=IF(A2=B2,"High Quality",IF(A2<320,"Low Quality","Transcoded"))
Fantastic! Thank you so much it worked! Now I know where I went wrong when originally applying the nested IF.
 
Upvote 0
Fantastic! Thank you so much it worked! Now I know where I went wrong when originally applying the nested IF.
The marked solution has been changed accordingly. In your future questions, please mark the post as the solution that actually answered your question, instead of your feedback message as it will help future readers. No further action is required for this thread.
 
Upvote 1

Forum statistics

Threads
1,215,465
Messages
6,124,977
Members
449,200
Latest member
Jamil ahmed

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