Assign Value to a Letter

Alberto5501

New Member
Joined
Dec 19, 2016
Messages
2
Hello

So Im making a worksheet that calculates vacation/sick days.
https://drive.google.com/file/d/0Bz6pu8U1FmBJaXVCNjdONFFVWnNQQURUWG0wV0JNQXMzaW9v/view?usp=sharing

I want that, In the chart below, if I write "V" it will automatically subtract "8" hours from the vacation chart (left). And If I write "E" (sick), it will subtract "8" hours from the sickness chart (right).

The subtracted value should go in the "DESC" column of each chart.

The thing is, that I managed to "do it" using =SUM(COUNTIF(B29:AF29,"V")), but it worked when I used the charts as days, now my boss wants to measure things in hours. Since it subtracted "1" for each V/E, now each V/E should subtract 8.

Is this possible? I've searched everywhere and signed only for this.

Thanks
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Hi

Thanks, for your reply. I've managed to do it using this formula

=SUM(COUNTIF(B28:AF28,{"V"})*{1,}).

I'll try yours too. Thanks again!
 
Upvote 0

Forum statistics

Threads
1,215,065
Messages
6,122,945
Members
449,095
Latest member
nmaske

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top