Trim Class , Distance , Stakes .

Sunline

Well-known Member
Joined
Oct 6, 2007
Messages
675
Hello all ,

I am wanting to get some functions that can give me the results I have in cols B C and D

The asterix * must also appear in the results if mentioned in col A .

Many thanks .
Excel Workbook
ABCD
1Col AClassDistStakes
2WFA 1600m - $200,000WFA1600200000
3OPN HCP 2000m - $40,000OPN HCP200040000
4Rating 85 Benchmark 1400m - $8,000Rating 85 Benchmark14008000
5Rating 65 Benchmark* 2200m - $30,000Rating 65 Benchmark*220030000
6SP COND 1300m - $150,000SP COND1300150000
73YOF SW 1200m - $70,0003YOF SW120070000
8MDN 1400m - $30,000MDN140030000
9OPN HCP 2500m - $2,500,000OPN HCP25002500000
10Rating 65 Benchmark Fillies and Mares* 1400m - $7,000Rating 65 Benchmark Fillies and Mares*14007000
Sheet1
 

Some videos you may like

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Momentman

Well-known Member
Joined
Jan 11, 2012
Messages
4,040
Office Version
  1. 365
Platform
  1. Windows
Try

<b>Excel 2010</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #BBB"><colgroup><col width="25px" style="background-color: #DAE7F5" /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #DAE7F5;text-align: center;color: #161120"><th></th><th>A</th><th>B</th><th>C</th><th>D</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">2</td><td style="font-weight: bold;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;color: #333333;background-color: #FFFFFF;;">WFA 1600m - $200,000</td><td style="font-weight: bold;text-align: right;border-left: 1px solid black;color: #333333;background-color: #FFFFFF;;">WFA</td><td style="font-weight: bold;text-align: right;color: #333333;background-color: #FFFFFF;;">1600</td><td style="font-weight: bold;text-align: right;color: #333333;background-color: #FFFFFF;;">200000</td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style="font-weight: bold;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;color: #333333;background-color: #FFFFFF;;">OPN HCP 2000m - $40,000</td><td style="font-weight: bold;text-align: right;border-left: 1px solid black;color: #333333;background-color: #FFFFFF;;">OPN HCP</td><td style="font-weight: bold;text-align: right;color: #333333;background-color: #FFFFFF;;">2000</td><td style="font-weight: bold;text-align: right;color: #333333;background-color: #FFFFFF;;">40000</td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style="font-weight: bold;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;color: #333333;background-color: #FFFFFF;;">Rating 85 Benchmark 1400m - $8,000</td><td style="font-weight: bold;text-align: right;border-left: 1px solid black;color: #333333;background-color: #FFFFFF;;">Rating 85 Benchmark</td><td style="font-weight: bold;text-align: right;color: #333333;background-color: #FFFFFF;;">1400</td><td style="font-weight: bold;text-align: right;color: #333333;background-color: #FFFFFF;;">8000</td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style="font-weight: bold;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;color: #333333;background-color: #FFFFFF;;">Rating 65 Benchmark* 2200m - $30,000</td><td style="font-weight: bold;text-align: right;border-left: 1px solid black;color: #333333;background-color: #FFFFFF;;">Rating 65 Benchmark*</td><td style="font-weight: bold;text-align: right;color: #333333;background-color: #FFFFFF;;">2200</td><td style="font-weight: bold;text-align: right;color: #333333;background-color: #FFFFFF;;">30000</td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style="font-weight: bold;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;color: #333333;background-color: #FFFFFF;;">SP COND 1300m - $150,000</td><td style="font-weight: bold;text-align: right;border-left: 1px solid black;color: #333333;background-color: #FFFFFF;;">SP COND</td><td style="font-weight: bold;text-align: right;color: #333333;background-color: #FFFFFF;;">1300</td><td style="font-weight: bold;text-align: right;color: #333333;background-color: #FFFFFF;;">150000</td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style="font-weight: bold;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;color: #333333;background-color: #FFFFFF;;">3YOF SW 1200m - $70,000</td><td style="font-weight: bold;text-align: right;border-left: 1px solid black;color: #333333;background-color: #FFFFFF;;">3YOF SW</td><td style="font-weight: bold;text-align: right;color: #333333;background-color: #FFFFFF;;">1200</td><td style="font-weight: bold;text-align: right;color: #333333;background-color: #FFFFFF;;">70000</td></tr><tr ><td style="color: #161120;text-align: center;">8</td><td style="font-weight: bold;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;color: #333333;background-color: #FFFFFF;;">MDN 1400m - $30,000</td><td style="font-weight: bold;text-align: right;border-left: 1px solid black;color: #333333;background-color: #FFFFFF;;">MDN</td><td style="font-weight: bold;text-align: right;color: #333333;background-color: #FFFFFF;;">1400</td><td style="font-weight: bold;text-align: right;color: #333333;background-color: #FFFFFF;;">30000</td></tr><tr ><td style="color: #161120;text-align: center;">9</td><td style="font-weight: bold;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;color: #333333;background-color: #FFFFFF;;">OPN HCP 2500m - $2,500,000</td><td style="font-weight: bold;text-align: right;border-left: 1px solid black;color: #333333;background-color: #FFFFFF;;">OPN HCP</td><td style="font-weight: bold;text-align: right;color: #333333;background-color: #FFFFFF;;">2500</td><td style="font-weight: bold;text-align: right;color: #333333;background-color: #FFFFFF;;">2500000</td></tr><tr ><td style="color: #161120;text-align: center;">10</td><td style="font-weight: bold;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;color: #333333;background-color: #FFFFFF;;">Rating 65 Benchmark Fillies and Mares* 1400m - $7,000</td><td style="font-weight: bold;text-align: right;border-left: 1px solid black;color: #333333;background-color: #FFFFFF;;">Rating 65 Benchmark Fillies and Mares*</td><td style="font-weight: bold;text-align: right;color: #333333;background-color: #FFFFFF;;">1400</td><td style="font-weight: bold;text-align: right;color: #333333;background-color: #FFFFFF;;">7000</td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #BBB;border-top:none;text-align: center;background-color: #DAE7F5;color: #161120">Sheet3</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #BBB"><thead><tr style=" background-color: #DAE7F5;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">B2</th><td style="text-align:left">=LEFT(<font color="Blue">A2,FIND(<font color="Red">C2&"m",A2</font>)-2</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">C2</th><td style="text-align:left">=TRIM(<font color="Blue">MID(<font color="Red">SUBSTITUTE(<font color="Green">A2," ",REPT(<font color="Purple">" ",99</font>)</font>),FIND(<font color="Green">"m ",SUBSTITUTE(<font color="Purple">A2," ",REPT(<font color="Teal">" ",99</font>)</font>)</font>)-99,99</font>)</font>)+0</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">D2</th><td style="text-align:left">=SUBSTITUTE(<font color="Blue">MID(<font color="Red">A2,FIND(<font color="Green">"m - ",A2</font>)+3,99</font>),"$",""</font>)+0</td></tr></tbody></table></td></tr></table><br />
 

Sunline

Well-known Member
Joined
Oct 6, 2007
Messages
675
Perfect again Momentman , 100% .
Exactly what i needed .
Thanks .
 

Watch MrExcel Video

Forum statistics

Threads
1,109,444
Messages
5,528,795
Members
409,835
Latest member
Mafu1267

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top