Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
chrisjwhite24
 
Posts: n/a
Default Sum multiple cells with different numbers and text.

I need to sum some cells that contain both text and numbers. The numbers are
prices and the text are the products sold.
Better explanation. Columns I through N are the Transactions for the day.
The prices and text are usually different, and some are blank.
Example Cell I10 is the first sale of the day. would contain $9.99 - 80mm
Fan, J10 would be $60.00 - I.H.S. and the rest of the cells K10 -N10 would be
blank, but the next day all the cells would be full, I11 - N11 each with
different values and text..
All of them do have a price $xx.xx and a - after the price but before the
text. I need to filter the prices from the cells to add them up. I found one
thing so far that sort of works, but it's crazy long
"=SUM(--MID(TRIM(I159),FIND("$",TRIM(I159)),FIND("-",TRIM(I159))-FIND("$",TRIM(I159))))"
The problem with this is I need to add that entire line for each cell, and
it gives an error if there is a blank cell.
Can anyone help me with this, maybe a smaller formula, or atleast something
that won't give errors if there is a blank cell?

Much appreciation to all who help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default Sum multiple cells with different numbers and text.

Please don't take offense, but you would be SO much better off in the long
run if you separated your numbers and your descriptions into two different
columns. Then all of the math could be with straight-forward normal
formulas.....and don't type in the dollar sign, let Excel's formatting do it
for you........

hth
Vaya con Dios,
Chuck, CABGx3



"chrisjwhite24" wrote:

I need to sum some cells that contain both text and numbers. The numbers are
prices and the text are the products sold.
Better explanation. Columns I through N are the Transactions for the day.
The prices and text are usually different, and some are blank.
Example Cell I10 is the first sale of the day. would contain $9.99 - 80mm
Fan, J10 would be $60.00 - I.H.S. and the rest of the cells K10 -N10 would be
blank, but the next day all the cells would be full, I11 - N11 each with
different values and text..
All of them do have a price $xx.xx and a - after the price but before the
text. I need to filter the prices from the cells to add them up. I found one
thing so far that sort of works, but it's crazy long
"=SUM(--MID(TRIM(I159),FIND("$",TRIM(I159)),FIND("-",TRIM(I159))-FIND("$",TRIM(I159))))"
The problem with this is I need to add that entire line for each cell, and
it gives an error if there is a blank cell.
Can anyone help me with this, maybe a smaller formula, or atleast something
that won't give errors if there is a blank cell?

Much appreciation to all who help.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Summing cells that contain numbers and text Mango Excel Discussion (Misc queries) 10 May 13th 06 06:18 PM
Why are 1/2 my numbers imported as text and the rest as numbers? KBear Excel Discussion (Misc queries) 2 April 21st 06 01:40 PM
How can I use "VLOOKUP" with cells containing both Text & Numbers? Brentp97 Excel Worksheet Functions 7 February 24th 06 09:24 PM
question about removing text from cells, leaving numbers JPN5804 Excel Discussion (Misc queries) 3 November 28th 05 05:55 PM
Cells formated as numbers are calculating like text MM_BAM Excel Discussion (Misc queries) 4 July 7th 05 01:29 AM


All times are GMT +1. The time now is 08:28 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"