![]() |
creating a formula that condenses information in a cell
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. |
creating a formula that condenses information in a cell
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. |
All times are GMT +1. The time now is 06:07 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com