If Then statement returning cell contents

FireBott

Board Regular
Joined
Nov 10, 2003
Messages
66
Office Version
  1. 2016
Platform
  1. Windows
I am trying to work an If Then formula that will return the contents of a cell. F78 = locations the Dr can practice (this is mult-select), C78 = Name of Doctor, C56 = location name. What I need is if the location is listed in F78 to populate the Doctors name. For example the location list has 3 different locations (Annex, Main and Union). The Doctor can see patients at Union.

If F78 = C56 then list the name from C78.

In this example if F78 has Union (C56) then populate the Doctor name (Cell C78) (Dr. Smith).

I came up with this formula but it is not working =IF(F78=C56,C78)

Thanks for any help.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
in what way it isn't working?


Excel 2013/2016
ABCDEFG
55
56Loc1
57
77
78Doc2Loc1
79
80
81
82Doc2
83
Sheet2
Cell Formulas
RangeFormula
C82=IF(F78=C56,C78,"")



Excel 2013/2016
ABCDEFG
55
56Loc1
57
77
78Doc2Loc3
79
80
81
82 
83
84
Sheet2
Cell Formulas
RangeFormula
C82=IF(F78=C56,C78,"")
 
Upvote 0

Forum statistics

Threads
1,214,858
Messages
6,121,956
Members
449,057
Latest member
FreeCricketId

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