Formula

xxsalahxx

Active Member
Joined
Jun 25, 2011
Messages
316
Office Version
  1. 2007
Hello I have a spreadsheet which has quite a lot of data in it .

I would like it to be able when adding WD 1, WD 2, WD 3, WD 4 into column A that Column B auto populates to say Medical and for Column C to say Medicine is this possible?
and WD 5 WD 6 WD 7 to say Surgical in column B and Surgery in column C

Is this possible?
Thanking you in advance for any help is much appreciated.



InputOutPutOutPut1
Ward 1MedicalMedicine
Ward 2MedicalMedicine
Ward 2MedicalMedicine
Ward 3MedicalMedicine
Ward 4MedicalMedicine
Ward 4MedicalMedicine
Ward 5SurgicalSurgery
Ward 6SurgicalSurgery
Ward 7SurgicalSurgery
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Im using Excel 2007, thank you I have also updated this in my account details.
 
Upvote 0
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
Would I be able to expand on this so for instance at the bottom of the chart i now have ward I have ward 39 and ward 49?


InputOutPutOutPut1
Ward 1MedicalMedicine
Ward 2MedicalMedicine
Ward 2MedicalMedicine
Ward 3MedicalMedicine
Ward 4MedicalMedicine
Ward 4MedicalMedicine
Ward 5SurgicalSurgery
Ward 39MedicalMedicine
Ward 49SurgicalSurgery
 
Upvote 0
Change it from RIGHT(A2) to RIGHT(A2,2) and change the criteria to suit.
 
Upvote 0

Forum statistics

Threads
1,215,327
Messages
6,124,281
Members
449,149
Latest member
mwdbActuary

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