Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Excel


Sum Cells With Numbers & Text

I have cells with '1 hour' , '5 hours' , '2.5 hours'.

All I want to do is add the numbers and ignore the text.

View Complete Thread with Replies

Sponsored Links:

Related Forum Messages:
Stripping Text From Urls With Numbers/text/hyphens Without Effecting Cells.
I generated my urls to online photos, I referenced cells where some are only numerical (ex. 479) while others contain a numerical/text mix (ex. 3014-RACK). Here is my url code in excel...

View Replies!   View Related
Remove Text From Cells Which Should Have Only Numbers
way to remove text from cells that should only contain numbers.
Example: 124 fcm 12 std

View Replies!   View Related
Remove Numbers From Cells With Text
I have copied information from an outside source to Excel. Unfortunately, the information includes numbers preceding the text which I need to delete for all records. Is there an easier way of deleting this information without going to each individual cell to delete the numbers

View Replies!   View Related
Sum A Range That Some Cells Have Text And Numbers
How can I sum all the values in a range of cells where the cells contain either a number or text and a number. Please note the following example?


I want the total of 31 but excel will ignore the cells with text.

View Replies!   View Related
Removing Numbers From Cells With Text
I have a bunch of cells that have City and Zip Code combinations.

Ex: Chicago 606
Fayettville 72701

Some of them are 3 digit zips and others are 5 digits. I just want to weed out anything with a number leaving the city names.

View Replies!   View Related
SumIf On Cells With Text & Numbers
I have the data below, there is alot more but I'll just be specific and i'll expand it myself to include the rest that I need.

I want to do sumif if in Column A that is between range R10 and R99, but I cannot figure out how to get the formula to work right since I have text instead of numbers. Also some of the other sumif's i need to do have only letters (for ex. RAA to RAZ or RDA to RDZ).


View Replies!   View Related
Delete All Numbers Like: #####-## From Text Strings In Cells
I need to remove multiple instances of pages numbers from a 2000 character text string I have dumped into a cell. The spacing is not equal between the page numbers but they always take the form |#####-##| i.e. bar delimited 5 digit-2 digit. I tried SUBSTITUTE but it will not accept wildcards. I was thinking of looping through a SEARCH. The numbers are ordered ie |00001-01| to |00001-25| then |00002-01| etc, stopping at 25. This might lend to looping but I couldn't wrap my head around the VBA to accomplish that. A sample of the text

"|00006-01| (Defendants' Exhibit Nos. 1,2 marked for |00006-02| Identification.) |00006-03| BY MR. JOHNSON: |00006-04| Q. Doctor, I am handing you Exhibits 1 and 2. |00006-05| Exhibit 2, is that the one that you brought with you, |00006-06| the deposition notice of today? |00006-07| A. I believe so, yes." Auto Merged Post Until 24 Hrs Passes;I should have said this before but this is for use on Excel 2003 WinXP.

View Replies!   View Related
Delete Text In Cells Leaving Only Numbers
i m creating a macro to delete extra characters in a column. I have over 200,000.00 records in one column which consists of numbers with characters. For example:

/ 80730279
80736277 /
( )80739210
* 80739823
& 80735380
80796440 @
## 80722138

if anybody can come up with a macro, so that I can just have the numbers and nothing else. I would like to exclude the following -~!@#$%^&*()_=+?/.";:|][{},^` within a cell.

View Replies!   View Related
Remove Text Character From Cells With Numbers
I want to change the character ~ with . in order to be able to make them numeric values to be feeded to other functions. But REPLACE seems not doing the job so I've been checking out other options such as seperating after and before the character ~. Details are below. I've been trying to use this formula to extract values from a delimited database which I open with excel. The formula that has brought me close is =IF(ISNUMBER(E51)=FALSE,LEFT(E51,LEN(E51)- FIND("~",E51)),E51)


When I import the database, the figures above have originals as 14010.00000 & 3210.00000 but transfer to excel as above. As far as I have observed 9 character spaces are displayed & the DOT transfers to ~ for some reason. I need the LEFT section of the ~

View Replies!   View Related
Find Cells Contaning Text Not Numbers
I need to find cells containing text (Alpha characters only) in a single column, an return the row(+1 then -1). The column contains Group names (Unknown) , and under each name follows numeric data until the next group name. The cells are not formatted other than BOLD names. I need to exctract the numeric data in groups.


I have manged using the following code, but this always assumes there is an "e" in the name, but would prefer a more foolproof method. (I used "e" cos it is ok so far, BUT this could change in the future)

Sc = "A"
Sr = "1"
With Worksheets(1).Range(Sc & Sr & ":A500").................

View Replies!   View Related
Format Formulas, Constants, Numbers & Text Cells Differently
I am attempting to write a VBA function that will add textual formatting to each cell that has content. I am just learning VBA; so far, as an example I have

Sub NewSub()
i = 1
j = 1
Cells(i, j) = "'" & Range(i.j).Value & "',"
i = i + 1
Loop Until i = 40
End Sub

but, as I'm sure you'll notice, it does not work. In essence I want to wrap quotes and follow with a comma each cell that contains any content. The actual content test I haven't gotten to yet.

View Replies!   View Related
Protect Cells So That Users Can Only Input Numbers Or The Text "NA"
I need help with a macro that allows users to put only numbers from a range of 0 to 100 and the only text allowed must be "NA" in an Excel sheet. I know that I can protect the cells from being erased and all but my main issue is that my users are putting all kinds of text values instead of NA or numbers above 100 making my life harder than it is.

View Replies!   View Related
Extracting Numbers From Text And Turning The Numbers Into Rows Of Data
The format of the text in which I need to extract numbers is as follows:

23411268 - 23411270

Need to extract the following:


These numbers have to be listed in three seperate rows.

View Replies!   View Related
Convert Numbers Stored As Text To Numbers (attached File)
In the ID column of the attached excel file whenever I convert the numbers stored as text to numbers it results in a weird transformation.

e.g. an ID of 480610141001 becomes 4.8061E+11. When I do the same process in the name column, which has similar numbers, it will give the correct result following the same process.

View Replies!   View Related
Convert Downloaded Web Page Numbers Seen As Text To Numbers
See attached file. A colleague is downloading rows of data from a website which contains a number field Excel is currently treating as Text after being pasted in. My spreadsheet includes just a sample of the many rows of data however as you can see the VALUE function refuses to convert these text values to numbers. How these might be converted and why the VALUE function refuses to work in this case?

View Replies!   View Related
Compare 2 Columns For Numbers In Mixed Text & Numbers
I need to compare two colums by number decription for example m344 in one column and fsh344-1 in another. All I want to match is 344. In column a I want to indcate the match by placing an X by each match. View my attachment for reference. I don't know if it makes a difference but the columns are centered in my original spreadsheet.

View Replies!   View Related
Converting Numbers Stored As Text To Numbers Via Macro
I'm looking for the VBA command for this function. I tried just recording a macro in where I perform the task but it didn't record anything. Tried it several times even.

View Replies!   View Related
Convert Numbers As Text To True Numbers
I have the following two macros that I use daily:

Public Sub add_tick_marks()
Dim c As Range
For Each c In Selection
If Not IsError(c.Value) Then
If Left(c.Value, 1) <> "'" And c.Value <> "" Then
If InStr(c.Value, "E+") > 0 Then
c.Value = "'" & c.Formula

I use these because I frequently copy billing account numbers that have leading zeros from some proprietary software and work with them in Excel. I need the leading zeros to facilitate VLookUp's. When I paste the data into Excel it truncates the leading zeros. My typical procedure is:

1. Copy a column of values from our proprietary software
2. Paste it in Excel (Ctrl+V)
3. While newly pasted data is still selected I hit Ctrl+1 which brings up the Format Cells form.
4. I double click "Text"
5. I re-paste into Excel (Ctrl+V)
6. I run my macro to add tic marks to the values so the leading zeros never get lost.

The problem occurs when I copy multiple columns of data and paste it in Excel. If one of the columns of data contains numbers or currency then I select that range of values and run the macro to get rid of the tic marks. After running the macro the numbers are still treated as text. When I select a range of those values and right-click on the status bar and select " Sum" there is no value. No big deal, I just highlight them and format the cells as numbers or currency. But after formatting them as numbers or currency, they retain their format as text until I click in the formula bar for each individual cell and hit enter, at which time they take on the number or currency format I have chosen and the sum can then be displayed in the status bar.

How can I force the formatting I chose to take effect on the data immediately without me having to individually "fake change" the data in each cell?

View Replies!   View Related
Converting Decimal Numbers To Text With Dot Numbers
we work with both Lotus 123 and Excel 2003. Lotus will be gone next year, but for now, the official mean to publish our reports is Lotus. With my work, I copy/paste a Lotus page to Excel. I use the following macro to convert Lotus format numbers (which Excel considers as text) to real numbers:

Sub ForceToNumber()
Dim wSheet As Worksheet
For Each wSheet In Worksheets
With wSheet
. Range("IV65536") = vbNullString
.UsedRange.PasteSpecial xlPasteValues, xlPasteSpecialOperationAdd
End With
Next wSheet
End Sub

Source : The problem is that I need to send back this data in Lotus. Excel considers decimal numbers with a coma as real numbers and numbers with a dot as a text. This previous macro fixes that. However, Lotus works the other way. Only numbers with a dot are considered real numbers. So I would need to find a way to code a macro that converts any numbers in the Excel sheet to a number with a dot. It's a bit like doing the opposite operation.

View Replies!   View Related
Convert Numbers Seen As Text To True Numbers
I have text as numbers downloaded to excel sheets from crystal that i need to add together on a summary sheet. I've tried using Value, TRIM and CLEAN functions to no avail. the TYPE function is reading the cell as Text and I have also tried multiplying by 1. Does anybody know how I can get around this ? hopefully I've attached an extract of the file

View Replies!   View Related
Match (text) Numbers To Numbers From One Cell To Another
I need the " solutions cells " to match to the " source cells " and return a " yes " or " no ". in cells d4:d10. Ex: #1 cell C4=01234598, it will conduct a search & match of cell A5 which contains the number 123, since cell C4 contains all 3 numbers from cell A5, then the formula would result in a " Yes ". The match has to contain all 3 numbers from the solution cells to the source cells.

Ex: #2 cell C7=67891234, it will conduct a search & match of cell A8 =901. Since cell C7 only contains the 9&1 from cell A8, it would return a " No " because cell C7 did not contain all 3 numbers from cell A8. I'm not sure if the IF, Match, Index or Count formula is the right one to use, they all seem to partially work, but still don't complete this problem.

View Replies!   View Related
Convert Numbers, Seen As Text, To True Numbers
The back story is that from a system we use, when you download data from inside it, Excel treats most of the cells with a "Number Stored As Text" error. I had problems with this and it was just generally annoying so I wrote the below macro that converts each of the cells back to general cells and reinputs the data, essentially reseting the cell and keeping the data. Being that this is a loop, it takes a good while to run if alot of data was downloaded. Any idea's on how to speed it up besides screen updating? Note, other stuff happens in the first macro, but it is just cosmetic non-intensive things. It calls the second macro because I wanted them seperate should I want to just run the second.

Sub CleanData()
Application. ScreenUpdating = False
' Find the Right most cell and the Bottom most cell and
' run the macro from A1 to this cell recursively
Col = Selection.Column
Row = Selection.Row
Range("A1", Cells(Row, Col)).Select
Application.Run ("FixTextAsNumberError")
Application.ScreenUpdating = True
End Sub..............

View Replies!   View Related
Convert Numbers Stored As Text To Text
I have the following macro that I use to convert numbers stored as text to text. For some reason, if I try to use it twice in a row, it won't work, I get an error that says "application-defined or object-defined error" and highlights this part of the Cells.SpecialCells(xlCellTypeLastCell).Offset(1, 1).Copy

View Replies!   View Related
Imported Text Files Numbers Seen As Text
I have opened a .txt (by right clicking and selecting Open with rather than open from within Excel) file with numbers using the format 1,234,567.00 but in my country we use 1 234 567,00. So I created a macro changing the , into "" and the . into , and it works fine while creating the macro itself (by using the macro recorder) and the numbers shows and behaves like numbers. However, when running the macro on a new file some numbers remain as text whereas others are numbers. Theres is no common string, eg that numbers starting with - (minus) remains text.

It does then not matter if I go to the format function and select number with decimals and thousand dividor - the number still remains as text. I have also tried the suggested multply by 1 but it still remains as text. The only thing that helps is to either double click on the number or use the Konvert text to number. But I would then have to click each number in the whole table which is what I wanted to avoid.

View Replies!   View Related
Numbers Only In Text Box
Is it possible to make a error message (when pressing a command button) appear if a user inputs into a textbox (on a user form) Text instead of numbers

The number format would also have a decimal e.g. 120.05 or sometimes not 145. So if text was placed in the text box e.g. "Ring for price" a error message would appear asking to remove text and input price...

View Replies!   View Related
Put The Text From Numbers
I have a whole raft of data as shown below and need to have it read as highlighted in bold in row 1, the text needs to be first followed by the numbers with no spaces.


View Replies!   View Related
Sum Numbers Within Text
Note: I have uploaded a sample spreadsheet with the problem and the required results. I have text (eg. 1-* to 15-*) (* is a wild card) being entered in the following columns


The starting row for each above column is 21 and ends at 128. The text is different in every cell where text is entered, some cells will be blank. Each number (1-* to 15-*) appears only once on the spreadsheet are moved around. On the sample spreadsheet I have created a summary area in the left corner of the spreadsheet and this is where I would like the results to appear. I am using the following formula. The only issue is I need it work from 1-* to 15-*. Right now it only works up to 9-*. An example is 1-1 and the result is in cell D9 on the sample spreadsheet. = SUMPRODUCT((LEFT(Q21:BK128,2)="9-")*(MOD(COLUMN(Q21:BK128)-COLUMN(Q21),5)<2))

View Replies!   View Related
Can You Use MAX Function On Numbers/text?
I am trying to use the "MAX" function to find the max temp on a particular day in a week from 7 separate sheets. The problem I have is one particular company autopopulates their temperature block with the temp and degree symbol: 46F instead of just 46. The max function is thrown off it appears by the symbol and letter. Is there a way to get the max function to only look at the numbers? I'm also open to the option of autoconverting each temp to a number on the master sheet and letting the "MAX" function search through those if that's possible.

View Replies!   View Related
Extract Numbers Before Text
I need some code that extracts everything after the last number in a cell. For example, in A1 I have

Flat 3 45 New Road

and need to rearrange it to get

Flat 3 45

into another cell. I've found this code;

View Replies!   View Related
Convert Numbers As Text
Working with an inherited spreadsheet which has massive amounts of numbers formatted $US to 2 decimals. Can't manipulate the data: all formulas to sum groups of the numbers yield zero and formulas to multiply or divide them yield "#VALUE" error message. I guess the data is text (is left justified) although there's no apostrophe visible in the formula bar. Anybody know how I can convert these to numbers?

View Replies!   View Related
Extracting Numbers From Text
I need to separate text information from a cell into 3 columns (W,9-8). The first letter I know how to extract. The problem is to extract the number in the middle (1 or 2 digit) between "," and "-" and also the last number. For the last number I could use right() function but the problem is that number could be 1 or 2 digits so I can not specify in advance so formula would have to extract the last number till "-". Anyone knows how to do this?

View Replies!   View Related
Deleting Text From Numbers
I have the following numbers in excel, with letters next to it, for example:


I want to remove the alphabets, and be left with just the numbers, example:

View Replies!   View Related
Text And Numbers In Formulas
B1, C1, E1, F1, H1, I1, K1, L1, N1, O1 will contain 1 of 10 different names (John, James, David, Jack, Alex, Aaron, Jason, Stan, Robert, Will)

I need A25 to pull the info from B1
A26 to pull the info from C1
A27 to pull the info from E1

If B1 and E1 have the same name then A27 should be blank.

Also C15, G15, and K15 contain a number. If A25 is not blank, then B25 should equal C15; If A26 is not blank, then B26 should equal C15;
If A27 is not blank, then B27 should equal K15. However, if B1 and E1 contains the same name, then A25 should equal C15 + K15.

If B1=John C1=James E1=David F1=Jack
and C15=10 G15=15 K15=20

then A25=John A26=James A27=David A28=Jack
and B25=10 (C15) B26=10 (C15) B27=15 (G15)

But if B1=John C1=James E1=John F1=Jack
and C15=10 G15=15 K15=20
then A25=John A26=James A27=(blank because John is already listed in A25) A28=Jack
and B25=25 (C15+G15) B26=10 B27=(blank) B28=15(G15).

View Replies!   View Related
Extract Text And Numbers
I want extract numbers and text from


In column Two 19.475


View Replies!   View Related
Vlookup Numbers As Text ...
I am using a lookup formula to look up data associated with part numbers. The part numbers are formated as text (in both tables) since many of them have leading zeros and if formated as a number, the zero drops off.

I find that sometimes the lookup does not work but if I go into the cell and retype the number, it will works. I have also tried recreating the number using the text formula and that works on nuumbers that don't include a dash. I don't understand what's happening to the data and want to know how to reformat it so the lookup will work.

View Replies!   View Related
Lookup When Numbers Are Text
I have an excel sheet sent from an outside vender thich has a hidden character (') at the beginning of all text fields. I need an easy way to remove it so I can use that text for Vlookup on my sheet. The sheet from vendor is huge so doing it manually is not an option. I have tried the Clean function but that doesn't work.

View Replies!   View Related
Numbers Entered As Text
I've been given a spreadsheet to fix where someone has entered amounts as text ("$123,456.78"). I've tried re- formatting, using the copy and paste special method by adding zero to force it to a number but nothing seems to work. How can I convert these text entries to numbers?

View Replies!   View Related
Extract Numbers From Text
Cell A1 = RJ46512263-F

Is there a formula wherein i can extract the numbers from the above text?

Cell B1 should give the result "46512263"

View Replies!   View Related
Sorting Text Numbers
I have numbers like this and their sorting wrong. I want to sort in decending order by last digit to the right.

How it's sorting now: (sorting by first number sequence)


I would like it to sort like this:


These WERE text numbers that were formulated to read like dates. Is there any way to munipulate how to sort? I'm just looking to sort it like it was a date. I get text files in formats like this:

09062006 and I formulated them to read 09/06/06 like it would be a date.

View Replies!   View Related
Using Vlookup For Text And Numbers
I have a list of thousands of SKU numbers. Most of these numbers look like this: 5212345. However I have a group of products whose numbers look like this: 0123456. As you can see my problem the SKU numbers start with a 0.

In my spreadsheet the user is going to be typing in the SKU number and that will be used to return other information regarding that SKU. Is it possible to design a vlookup function to be used with both types of SKU's or do I need to come up with something creative regarding the SKU's that start with 0's.

View Replies!   View Related
Separate Text From Numbers
I have cell with lot of texts, punctuations and numbers all mixed together,
example :

private-4089 AND road ESCORT,trailer-4111 & test vehicle

I need to remove all texts and keep the numbers only: 4089, 4111

then I hope I can do text to column to put each number in a cell

View Replies!   View Related
Separate Numbers From Text ...
I have text in column F that have numbers at the begining of the text. Unfortunately not all the number are of the same lenght. what is the way I can separate them from the text.



View Replies!   View Related
Converting Text To Numbers In Vba
How can i convert text columns to numbers in VBA.

View Replies!   View Related
Removing Text From Numbers
I have a column of data which has numbers and units (small example below).
I need to remove the text (units) and at the same time multiply the number by a value which is based on what the text is:

-999.9uA needs to become -999.9*10^-6

-98.40mA needs to become -98.40*10^-3

View Replies!   View Related
Extracting Numbers From Within Text
I'm usuing the below formula to extract numbers from within text and also dropping off any leading zeros.

Formula in B2 copied down.

Is there any other/better way? ...

View Replies!   View Related
Sorting Numbers With Text
I have a list of 2,000 plus numbers and the list contains numbers and text. When I sort or filter, the only option is sort A to Z (or Z to A), but the result is all of the numbers are sorted, then the numbers with letters are sorted. How can I sort both? I attached a excel example of what I am looking for.

View Replies!   View Related
Show Numbers Not Text
I have over 2000 cells like the following


and so on

Is there anything I can do to show just the numbers and not the S at the start without me having to delete each S individually?

View Replies!   View Related
Separate Text And Numbers
creating a formula to separate the text from the numbers into 2 separate columns.

Examples are:
A1= Angel Romero 260.00
A2= Wieben Chiropractic Clinic 74.00
A3= R Ricardo Ramirez Dds 340.00

The 'Text to Column' function does not work because there is no fixed width and no deliminater. To add in a deliminater, like a "", is an option but there are thousands of cells to do this to.

As you can see, using LEFT, RIGHT and MID functions become tricky since the deliminater would be a "space" but there are often several "spaces" in the string of characters.

Is there a way to SEARCH or FIND the first number and let that be the deliminater?

View Replies!   View Related
Convert Numbers To Text
converting numbers to text:

In cell F39 i have a number (for example) 4322.08
and i would like to convert into into text in the following way
In cell B47 I would like it to say Four
In cell C47 I would like it to say Three
In cell E47 I would like it to say Two
In cell G47 I would like it to say Two
In cell I47 I would like it to say Two
in cell J47 I would like it to say Eight

But essentially any number that I type into cell F39, I would like it to convert the number to text

View Replies!   View Related
Copyright 2005-08, All rights reserved