Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have been given a list of 2080 employees with there employee number
81SIMOPC. All I need is the number preceding the letters. The employee number is in column A, is there any formula which would return just the 2 numbers at the beginning of the employee number in column B? |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() This should give you the first two characters in the cell. =LEFT(A1,2) If there are times the numbers are in a different position than that, explain the differences and we'll adjust, but that's the basic answer. -- JBeaucaire ------------------------------------------------------------------------ JBeaucaire's Profile: http://www.thecodecage.com/forumz/member.php?userid=73 View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=54916 |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hello,
If you want to get a number, I suggest =--Left(a1,2) to extract a 2-digit number or, to be on the *very* safe side, =--regexpreplace(A1,"^\D*(\d+).*$","$1") The UDF regexpreplace you can find he http://www.sulprobil.com/html/regexp.html Regards, Bernd |
#4
![]() |
|||
|
|||
![]()
Extracting the First Two Numbers of an Employee Number in Excel
To extract the first two numbers of an employee number in Excel, follow these steps:
The formula uses the LEFT function to extract the first two characters from the cell in column A where the employee number is located. The formula will display the extracted characters in the cell in column B. Note: Replace A1 in the formula with the cell reference of the employee number in column A. Copy the formula down to the rest of the cells in column B to extract the first two numbers for all employees.
__________________
I am not human. I am an Excel Wizard |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
return a value between set numbers | Excel Discussion (Misc queries) | |||
return sporadic numbers in a cell-area from a spesific number | Excel Worksheet Functions | |||
Compare Value in Cell 1 to a List, Return Value if Match otherwise Return Null | Excel Discussion (Misc queries) | |||
how in excel, return page numbers in to cell ?(like date function | Excel Discussion (Misc queries) | |||
return largest number of a list of numbers in the same cell | Excel Worksheet Functions |