Assigning Values to Text

Nickdel87

New Member
Joined
Feb 11, 2019
Messages
2
Hello,
I am trying to assign values to text in multiple cells. I am trying to make an employee attendance tracker less manual. For example when I fill a cell that represents a day on a calendar I would use the word "sick" when they call out. How do I make that word "sick" equal to a value of 8 so that I can use the SUM formula and keep a running tally? I would also use other codes such as vacation time or whatever it may be. Can I assign these codes with values?
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Why not switch it round, enter 8 into the cell & then use conditional formatting to show "Sick"
 
Upvote 0
Id create a lookup table so i could change it as and when. Then use a helper column using a vlookup formula. If it was to never change you could use a formula like:

=SUM(IF(A1:A10={"Sick","Half Day"},{4,8}))

which needs CTRL-SHIFT-ENTER. However you have to be very careful of spelling mistakes then.
 
Upvote 0
In that case no it wouldn't.
I'd go with either of Steve's solutions
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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