IF OR FUNCTION

TexasCPA

New Member
Joined
Nov 27, 2024
Messages
7
Office Version
  1. 2019
Platform
  1. MacOS
=IF(T23="A",T23="B"),"CD","CR”) The result does not return a value. I get the attached error message

Open the second scree shot. If “A” is in cell T23, the value should be CD in Cell U223 and if the value is B , CR should be in Cell U23

I tried using the apostrophe as described in the error message- No result was returned.

Whats wrong with the formula?

Thanks for your help
 

Attachments

  • Screenshot 2024-11-27 at 12.36.27 PM.png
    Screenshot 2024-11-27 at 12.36.27 PM.png
    47.1 KB · Views: 2
  • Screenshot 2024-11-27 at 12.38.15 PM.png
    Screenshot 2024-11-27 at 12.38.15 PM.png
    9.6 KB · Views: 2

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hi & welcome to MrExcel.
How about
Excel Formula:
=IF(T23="A","CD",if(T23="B","CR",""))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,613
Messages
6,179,898
Members
452,948
Latest member
Dupuhini

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