If Then statement returning cell contents

FireBott

Board Regular
Joined
Nov 10, 2003
Messages
72
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

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
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,223,162
Messages
6,170,432
Members
452,326
Latest member
johnshaji

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