#1   Report Post  
Posted to microsoft.public.excel.newusers
Jay Taylor
 
Posts: n/a
Default adding text

I am building a work schedule. I have different text and numerical codes for
shifts (ob1, ob2, n, sac, 9-5, 1, AND ER) I want the schedule to add only the
text I have in parenthesis. I want this to be a numerical value. I want it to
ignore my day off code and Holiday Time(do, ht) Also after this I want
another cell to show 12- the answer I received from the added days above.
I do not want to change the format of my schedule. It has been used for years.
I am using Microsoft Excel 2003 98xp pro
--
Jay Taylor
  #2   Report Post  
Posted to microsoft.public.excel.newusers
Barb Reinhardt
 
Posts: n/a
Default adding text

I'm not clear on what you want.

First you say you want the schedule to add only the text in parens
Then you say you want the entry to be a numeric value.

The text in parents is not numeric. Do you want to convert it to numeric
somehow? A piece of this puzzle is missing.

We'll get to the 12 later.



"Jay Taylor" wrote in message
...
I am building a work schedule. I have different text and numerical codes
for
shifts (ob1, ob2, n, sac, 9-5, 1, AND ER) I want the schedule to add only
the
text I have in parenthesis. I want this to be a numerical value. I want it
to
ignore my day off code and Holiday Time(do, ht) Also after this I want
another cell to show 12- the answer I received from the added days above.
I do not want to change the format of my schedule. It has been used for
years.
I am using Microsoft Excel 2003 98xp pro
--
Jay Taylor



  #3   Report Post  
Posted to microsoft.public.excel.newusers
Jay Taylor
 
Posts: n/a
Default adding text

ob1 & ob2 needs to equal 12, n,sac,9-5,1,and er needs to equal 8.
1 2 3 4 5
worker 1 ob1 9-5 1 ob2 n should equal 48
worker 2 n 1 9-5 ob1 ob2 should equal 48

--
Jay Taylor


"Barb Reinhardt" wrote:

I'm not clear on what you want.

First you say you want the schedule to add only the text in parens
Then you say you want the entry to be a numeric value.

The text in parents is not numeric. Do you want to convert it to numeric
somehow? A piece of this puzzle is missing.

We'll get to the 12 later.



"Jay Taylor" wrote in message
...
I am building a work schedule. I have different text and numerical codes
for
shifts (ob1, ob2, n, sac, 9-5, 1, AND ER) I want the schedule to add only
the
text I have in parenthesis. I want this to be a numerical value. I want it
to
ignore my day off code and Holiday Time(do, ht) Also after this I want
another cell to show 12- the answer I received from the added days above.
I do not want to change the format of my schedule. It has been used for
years.
I am using Microsoft Excel 2003 98xp pro
--
Jay Taylor




  #4   Report Post  
Posted to microsoft.public.excel.newusers
Roger Govier
 
Posts: n/a
Default adding text

Hi Jay

With your data in A1:F3, enter in cell H2
=SUMPRODUCT(--(B1:F1<"")*8)+SUMPRODUCT(--(LEFT(B1:F1,2)="ob")*4)
and copy down

Regards

Roger Govier


Jay Taylor wrote:
ob1 & ob2 needs to equal 12, n,sac,9-5,1,and er needs to equal 8.
1 2 3 4 5
worker 1 ob1 9-5 1 ob2 n should equal 48
worker 2 n 1 9-5 ob1 ob2 should equal 48

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
Adding Two Text Fields together Audrey Excel Discussion (Misc queries) 2 February 24th 05 11:08 PM
Sort or Filter option? Mcobra41 Excel Worksheet Functions 3 February 23rd 05 07:22 PM
Adding Leading Zeros to Text Jenn Excel Discussion (Misc queries) 4 January 12th 05 06:51 PM
Adding cells, using text as number Pgsmom Excel Discussion (Misc queries) 4 January 10th 05 07:21 PM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM


All times are GMT +1. The time now is 10:57 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"