Hello All
I am using Excell 2003 to log service hours from a vendor. The service report has an FSR# that is unique. In my spread sheet I have 3 columns, FSR#, Badge # and Rep amongst others.
The format of the FSR # is H#####-ABCD-ABC123 (ex h87654-sjey-7m666f). The first set of numbers pertain to the badge # , I like to show in the worksheet. Currently I re-enter just the badge #, ex. 87654, into the cell. The next cell contains the formula =VLOOKUP(D282,Rep,2,FALSE) which then populate the cell with the Reps name.
I am lazy and do not want to retype the badge #. When researching how to stay lazy I found two formulas that populate the cell, "=LEFT($C280,FIND("-",$C280)-1)" and "=MID($C281,2,5)", where c281 is the FSR #. The problems I encounter with the first formula is that the leading "h" follows the number. I can get around this by changing the primary lookup value in the table. ( I actually did this but it bugs me that I cannot get rid of the "h"). The second formula actually populate the badge # field correctly but then the lookup does not work. I get N/A which just pisses me off. I know, better pissed off than pissed on.
Do any of you great intelects out there have a solution that will work and allow me keep my lazy status.
Thanks
Bob
"Almost" Good Answers: