Assigning a value based on case

marknlard

New Member
Joined
Sep 15, 2004
Messages
17
Hi,

I have a spreadsheet of a football fixture list with the game number in the columns and the team name on the row. The data in the middle is the team's opponent that week. So it looks something like:

........1.....2......3
ARS...new.LIV....mun
AVL...ful....BLA...WOL

and so on.

Names in lower case are away matches and upper case are at home. Is there a way of assigning a value to each cell depending on whether it is lower or upper case? So I can have a value of 1 for a home match and 2 for an away match, for example.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Take you choice, X31 or Y31 and copy down:
Excel Workbook
WXY
31wol11
32WOL22
33Wol22
34ABC22
35abc11
Sheet


They only look at the first letter.
OK. I've done it the wrong way, swap the positions of the 2 and 1 in the formulae.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,827
Members
452,946
Latest member
JoseDavid

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