Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I need a formula that brings back a set amount of information when there are
variable amounts of information in the selected cell. I am working in a spreadsheet where column a has numbers of different length. I am trying to create a formula that brings back a variable amount of information. In some cases I would need the first four digits brought back, in others the first five digits, and so on. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Is there any kind of pre-set logic to how many characters you bring back?
For example do you have a hyphen separating the strings in each cell, and you want to bring back everything to the left of that? e.g. you want the "1FY3" part of "1FY3-DI84"? In this case: =LEFT(A1,SEARCH("-",A1)-1) If this isn't what you're looking for search the help menu for LEFT(), MID() and RIGHT() for pulling out substrings of variable lengths. -- Regards, Dave "Looking for Answers" wrote: I need a formula that brings back a set amount of information when there are variable amounts of information in the selected cell. I am working in a spreadsheet where column a has numbers of different length. I am trying to create a formula that brings back a variable amount of information. In some cases I would need the first four digits brought back, in others the first five digits, and so on. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
assign formula to another cell | Excel Worksheet Functions | |||
Cell sizing in a Vlookup formula to fit information. | Excel Worksheet Functions | |||
Formula checking multiple worksheets | Excel Worksheet Functions | |||
inserting data from a row to a cell, when the row number is specified by a formula in a cell | New Users to Excel | |||
GET.CELL | Excel Worksheet Functions |