Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
babs
 
Posts: n/a
Default getting a total for a row of cells where some are text

I am trying to get a total monthly salary for employess in the row however
some of the cells could contain a variety of text, ex. laid off, vacation,
off - it could possibly even be something different. My formula right now
is =c6+g6+k6+o6+s6 - obviously for the rows with text in one of the cells I
get Value? for the total. I would like to be able to keep the text in the
individual cells but handle the text as a 0 in the formula- once again it
could be any text- not always similar text.

Please help,
Thanks,
Babs
  #2   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default getting a total for a row of cells where some are text

This trick can be applied to any collection of cells. In the simpliest case
say we want to add A1 and B1. Usually:

=A1+B1

will work just fine. If there may be extraneous text in either cell use:

=IF(ISNUMBER(A1),A1,0)+IF(ISNUMBER(B1),B1,0)

You can adapt this for your range of cells
Have a good day

--
Gary's Student


"babs" wrote:

I am trying to get a total monthly salary for employess in the row however
some of the cells could contain a variety of text, ex. laid off, vacation,
off - it could possibly even be something different. My formula right now
is =c6+g6+k6+o6+s6 - obviously for the rows with text in one of the cells I
get Value? for the total. I would like to be able to keep the text in the
individual cells but handle the text as a 0 in the formula- once again it
could be any text- not always similar text.

Please help,
Thanks,
Babs

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
vlookup on large text in cells Gus Excel Worksheet Functions 2 February 23rd 06 06:55 PM
question about removing text from cells, leaving numbers JPN5804 Excel Discussion (Misc queries) 3 November 28th 05 05:55 PM
Linked cells and text boxes Alexlondon11 Excel Discussion (Misc queries) 2 November 23rd 05 04:10 PM
replacing text in all cells with existing text plus something avi2001 Excel Discussion (Misc queries) 2 November 2nd 05 04:29 PM
I want Excel to allow cells with formulas and unrelated text blueboy Excel Discussion (Misc queries) 9 March 4th 05 12:22 AM


All times are GMT +1. The time now is 12:04 AM.

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

About Us

"It's about Microsoft Excel"