ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   using a substitute value (https://www.excelbanter.com/excel-programming/324328-using-substitute-value.html)

Tracy D.

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


Jim Thomlinson[_3_]

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



All times are GMT +1. The time now is 10:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com