ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   return a portion of data entered into a cell (https://www.excelbanter.com/excel-discussion-misc-queries/125279-return-portion-data-entered-into-cell.html)

Brian

return a portion of data entered into a cell
 
Ex: say I enter the following into cell A1: "1400 jefferson" When i
select this data from a drop down list, I do not want all of the "1400
jefferson" going into the cell, rather I want just to return the number
portion of that data "1400" what formula can do this.

Thank you,
Brian



Gary''s Student

return a portion of data entered into a cell
 
If your data is always of the form {number space text}

then use the formula:
=LEFT(A1,FIND(" ",A1))

This gets you everything to the left of that space.
--
Gary's Student


"Brian" wrote:

Ex: say I enter the following into cell A1: "1400 jefferson" When i
select this data from a drop down list, I do not want all of the "1400
jefferson" going into the cell, rather I want just to return the number
portion of that data "1400" what formula can do this.

Thank you,
Brian




All times are GMT +1. The time now is 09:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com