Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default using a substitute value

I am a retail operation with 4 shifts named A,B,C,D. I use the shifts to
shedule
A 8-12 - 4 hours
B 10-4 - 6 hours
C 12-8 - 8 hours
D 3-8 - 5 hours

I want excel to calculate a the total time scheduled based on the shift I
enter in the spreadsheet. Looks like this:

MON TUE WED...
Curly A C A
Larry B B B
Moe D C A
Total 15 22 14

Can't figure it out. Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default using a substitute value

Try this formula. I assume you are starting in Cell A1

=COUNTIF(B2:B4,"A")*4 + COUNTIF(B2:B4, "B") * 6+COUNTIF(B2:B4, "C") *
8+COUNTIF(B2:B4, "D") * 5

HTH

"Tracy D." wrote:

I am a retail operation with 4 shifts named A,B,C,D. I use the shifts to
shedule
A 8-12 - 4 hours
B 10-4 - 6 hours
C 12-8 - 8 hours
D 3-8 - 5 hours

I want excel to calculate a the total time scheduled based on the shift I
enter in the spreadsheet. Looks like this:

MON TUE WED...
Curly A C A
Larry B B B
Moe D C A
Total 15 22 14

Can't figure it out. Thanks

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
Substitute Trish Excel Worksheet Functions 7 April 28th 09 08:58 PM
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE.... max. limit 8 :( [email protected] Excel Discussion (Misc queries) 6 May 22nd 08 05:33 PM
More than 7 IF? any substitute? Jean Excel Worksheet Functions 4 March 9th 07 05:41 AM
Using &Chr$(39)& as substitute for ' in VBA Paul987 Excel Discussion (Misc queries) 4 March 15th 06 02:48 PM
Substitute chr(39) Jos Vens[_2_] Excel Programming 5 December 27th 04 09:11 AM


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