If and or

richmcgill

Board Regular
I need one formula that will display information based on three different variables. Does the below make sense?

If cell A1 equals = True
If cell A2 equals = Hello
Cell A3 will Display = Employee A

If cell A1 equals = True
If cell A2 equals = HI
Cell A3 will Display = Employee B

If cell A1 is False then cell A3 will remain blank

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Maybe something like
=IF(NOT(A1),"",IF(A2="Hello","Emp1",IF(A2="HI","emp2","")))

Try

=IF(AND(A1=TRUE,A2="Hi"),"Employee A",IF(AND(A1=TRUE,A2="Hello"),"Employee B",""))

Thank you! Thank worked.

Replies
2
Views
339
Replies
8
Views
235
Replies
4
Views
387
Replies
9
Views
96
Replies
1
Views
160

1,217,500
Messages
6,137,008
Members
450,038
Latest member

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.

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