Two columns one uodates the other

Manda1967

New Member
Joined
Dec 20, 2023
Messages
4
Office Version
  1. 2010
Platform
  1. Windows
I have a spreadsheet that I put patient referrals innto
I put the ward number in one column and in the next the specially of that ward
The list of wards and specialties are in my excel so I can check and make sure I match the riggt ward to specially

Is there a way to do this so that the second column pics up the specially automatically from the list?

Hope that makes sense and hope you can help
Thank you
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
I think this is what you're after.

Book1
BCDEFGH
1List of wards and specialties
2WardSpecialtyPatientWardSpecialty
31aJason Hamilton8h
42bKristy Deschenes3c
53cKim Jobin2b
64dMeghan Beaudry1a
75eJean-Francois Arsenault3c
86fJean-Guy Gray4d
97gLyn Nguyen7g
108hJonathan Evans8h
119iNathalie Small6f
1210jShawna Donaldson2b
13Cindy McCormick10j
14Elise Pike9i
15Pascale Marsh1a
16Duncan Gaudet4d
17Mary Legare4d
Sheet1
Cell Formulas
RangeFormula
H3:H17H3=VLOOKUP(G3,$B$3:$C$12,2)
 
Upvote 0
I think this is what you're after.

Book1
BCDEFGH
1List of wards and specialties
2WardSpecialtyPatientWardSpecialty
31aJason Hamilton8h
42bKristy Deschenes3c
53cKim Jobin2b
64dMeghan Beaudry1a
75eJean-Francois Arsenault3c
86fJean-Guy Gray4d
97gLyn Nguyen7g
108hJonathan Evans8h
119iNathalie Small6f
1210jShawna Donaldson2b
13Cindy McCormick10j
14Elise Pike9i
15Pascale Marsh1a
16Duncan Gaudet4d
17Mary Legare4d
Sheet1
Cell Formulas
RangeFormula
H3:H17H3=VLOOKUP(G3,$B$3:$C$12,2)

I think this is what you're after.

Book1
BCDEFGH
1List of wards and specialties
2WardSpecialtyPatientWardSpecialty
31aJason Hamilton8h
42bKristy Deschenes3c
53cKim Jobin2b
64dMeghan Beaudry1a
75eJean-Francois Arsenault3c
86fJean-Guy Gray4d
97gLyn Nguyen7g
108hJonathan Evans8h
119iNathalie Small6f
1210jShawna Donaldson2b
13Cindy McCormick10j
14Elise Pike9i
15Pascale Marsh1a
16Duncan Gaudet4d
17Mary Legare4d
Sheet1
Cell Formulas
RangeFormula
H3:H17H3=VLOOKUP(G3,$B$3:$C$12,2)
Oh wow it definitely is. Now here come the questions
Can my ward and specialty list be on a separate tab?
And how the heck do I create that formula?
Amanda 😊
 
Upvote 0
Can my ward and specialty list be on a separate tab?
Absolutely. If you use the XL2BB tool to send a small sample of your setup, we can work with the relevant cells. You can copy the formula I used above and adjust the cell references as needed:
Excel Formula:
=VLOOKUP(G3,$B$3:$C$12,2)


It might look like this if your patient record is on sheet1 and your list is on sheet2:

2023-12-20.xlsx
FGH
2PatientWardSpecialty
3Jason Hamilton8h
4Kristy Deschenes3c
5Kim Jobin2b
6Meghan Beaudry1a
7Jean-Francois Arsenault3c
8Jean-Guy Gray4d
9Lyn Nguyen7g
10Jonathan Evans8h
11Nathalie Small6f
12Shawna Donaldson2b
13Cindy McCormick10j
14Elise Pike9i
15Pascale Marsh1a
16Duncan Gaudet4d
17Mary Legare4d
18
19
Sheet1
Cell Formulas
RangeFormula
H3:H17H3=VLOOKUP(G3,Sheet2!$B$4:$C$13,2)

2023-12-20.xlsx
BC
2List of wards and specialties
3WardSpecialty
41a
52b
63c
74d
85e
96f
107g
118h
129i
1310j
Sheet2
 
Upvote 0
Hi and apologies for not replying sooner this has all been so helpful - truly - but I am a novice at all this stuff eek so being unable to XL2BB especially on my work laptop - I have taken a screen grab of the columns and it is the two highlighted ones at the end
Referral ward I would put in then for the CSU of referral ward to automatically update (that data is in my filters sheet in excel just a column of all the filters I use in this main sheet - I keep them seperate as it is a big sheet
1704452141973.png


This is the column on my filters page:
1704452169675.png

I do hope this makes sense and I will be eternally grateful for any advice and coding offered :) Amanda
 
Upvote 0
We will need to see the Referral Ward list as well, so we can see how the two lists relate to each other. If you can copy and paste them as tables, that would help, too.
 
Upvote 0
of course so I have taken a section but the ward list is in column A and the CSU list is in column B

AB
WardCSU
C01CAH
C02CAH
C03CAH
C04CAH
C05CAH
C06CAH
J01/NICUChildren's Services
J03Women's Services
J04Women's Services
J05Women's Services
J06Cardio
J07Urgent Care
J08Urgent Care
J09Cardio
J10Cardio
J11Cardio
J12Cardio
J14SIM
J15SIM
J16SIM
J17SIM
J19SIM
J20SIM
J21SIM
 
Upvote 0
Ok, if your data entry table looks like the first set, and the Ward list is in columns A and B of a sheet called "Filters" it would look like this. You can change the cell references to suit if they don't exactly match. For instance, if you have a list of 45 wards instead of the 25 you provided, just change he formula in entry table column P from $B$26 to $B$46.

Specialties and Wards.xlsx
ABCDEFGHIJKLMNOP
1Patient NameDate of BirthAgeNHSno.GenderSensory Support NeedsEthnicityPost codeDate of AlertPrimary Support ReasonAlleged Primary Abuse TypePATCHLocation of alleged abuseCSU Location of Alleged AbuseReferral wardCSU of referral ward
2Jason HamiltonC01CAH
3Kristy DeschenesC04CAH
4Kim JobinC05CAH
5Meghan BeaudryJ04Women's Services
6Jean-Francois ArsenaultJ08Urgent Care
7Jean-Guy GrayJ11Cardio
8Lyn NguyenJ15SIM
9Jonathan EvansJ19SIM
10Nathalie SmallC02CAH
11Shawna DonaldsonC03CAH
12Cindy McCormickJ01/NICUChildren's Services
13Elise PikeJ10Cardio
14Pascale MarshJ14SIM
15Duncan GaudetJ17SIM
16Mary LegareJ20SIM
17Casey DuchesneJ11Cardio
18Jason JosephJ12Cardio
19Corey RyanJ14SIM
20Lou BairdJ15SIM
21Terri LiangJ16SIM
22Bruce LetourneauJ17SIM
23Earl GuerinJ19SIM
24Angelo LindsayJ20SIM
25Catherine TurnbullJ21SIM
26Dean LegaultJ21SIM
27Elmer WuJ21SIM
28Edna McCannJ01/NICUChildren's Services
29Carolyn AndrewsJ21SIM
30Francois MortonJ10Cardio
31Mandy BarkerJ17SIM
Sheet1
Cell Formulas
RangeFormula
P2:P31P2=VLOOKUP(O2,Filters!$A$1:$B$26,2)


Specialties and Wards.xlsx
AB
1AB
2WardCSU
3C01CAH
4C02CAH
5C03CAH
6C04CAH
7C05CAH
8C06CAH
9J01/NICUChildren's Services
10J03Women's Services
11J04Women's Services
12J05Women's Services
13J06Cardio
14J07Urgent Care
15J08Urgent Care
16J09Cardio
17J10Cardio
18J11Cardio
19J12Cardio
20J14SIM
21J15SIM
22J16SIM
23J17SIM
24J19SIM
25J20SIM
26J21SIM
Filters
 
Upvote 0

Forum statistics

Threads
1,215,261
Messages
6,123,932
Members
449,134
Latest member
NickWBA

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