jamieraitt
New Member
- Joined
- Mar 21, 2022
- Messages
- 9
- Office Version
- 2019
- Platform
- Windows
Hello,
First post in here and new to Excel in general, so go easy! Also, if there is a simpler method of doing this then please tell me!
I have been given a spreadsheet which contains the finishing positions of several races in a season. Unfortunately, it's not that easy to do any analysis on in the current format, which is:
BAH MON HUN etc...
1st GLY SWF SWF
2nd NAG JEF BLI
3rd WHI BLI LAW
etc...
I'm trying to get it into a format like this:
BAH MON HUN
BLI 11 3 2
GLY 1 12 DNF
JEF 8 2 11
On the sheet I have been given, if a player has a DNF (Did Not Finish), they have an "x" in front of their abbreviated name. So if this is the case, rather than a finishing position being displayed, I need the cell to display "DNF".
The problem I am having currently, is that I am only able to get the SEARCH part of the formula to apply to one cell. The formula is as follows:
=IF(ISNUMBER(SEARCH("x",'ResultsS8 '!C18)),"DNF",(MATCH("*"&$A$2:$A$24&"*",'ResultsS8 '!C:C,0))-1)
The MATCH part is working correctly, and the "DNF" displays when it should (if I remove the "x" from the front of the abbreviated name on the original sheet, the correct number displays on the new sheet). But I'm only able to get it working when referencing one cell at the moment (C18 in this instance). Am I able to nest the correctly working MATCH function within the SEARCH function? Or is there a better way of getting the same end result?
Many thanks in advance!
First post in here and new to Excel in general, so go easy! Also, if there is a simpler method of doing this then please tell me!
I have been given a spreadsheet which contains the finishing positions of several races in a season. Unfortunately, it's not that easy to do any analysis on in the current format, which is:
BAH MON HUN etc...
1st GLY SWF SWF
2nd NAG JEF BLI
3rd WHI BLI LAW
etc...
I'm trying to get it into a format like this:
BAH MON HUN
BLI 11 3 2
GLY 1 12 DNF
JEF 8 2 11
On the sheet I have been given, if a player has a DNF (Did Not Finish), they have an "x" in front of their abbreviated name. So if this is the case, rather than a finishing position being displayed, I need the cell to display "DNF".
The problem I am having currently, is that I am only able to get the SEARCH part of the formula to apply to one cell. The formula is as follows:
=IF(ISNUMBER(SEARCH("x",'ResultsS8 '!C18)),"DNF",(MATCH("*"&$A$2:$A$24&"*",'ResultsS8 '!C:C,0))-1)
The MATCH part is working correctly, and the "DNF" displays when it should (if I remove the "x" from the front of the abbreviated name on the original sheet, the correct number displays on the new sheet). But I'm only able to get it working when referencing one cell at the moment (C18 in this instance). Am I able to nest the correctly working MATCH function within the SEARCH function? Or is there a better way of getting the same end result?
Many thanks in advance!