Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default storing lettrs in an excel cell to later = a number for a formula

in cell b3 I want to store the letter H to indicate a holiday has been taken.
I then need the total column at the end of the week to be able to look at the
H and use it as 7.5. Indicating that 7.5hrs of holiday has been used.
  #2   Report Post  
Posted to microsoft.public.excel.misc
jim jim is offline
external usenet poster
 
Posts: 2
Default storing lettrs in an excel cell to later = a number for a formula

Have you considered using countif * the value of H? For example:

=countif(B2:B500,"H")*7.5

This would count the number of occurrences of the letter "H" and
multiply that number by the total hours expected.

If H isn't alone, you could create a separate set of cells that lists
letter/number pairs. Then use countif for the specific letter times a
vlookup of that same letter to return it's corresponding multiplier.

For example:
Column B contains the values you want to tally
Column Q lists the letters, G,H,I, etc.
Column R lists corresponding numeric values, 5, 7.5 10, etc.

Your summary section is in AA2:AB5 (where AA lists the letters and
BB will list the totals)

Your formula might look something like:

For G: =countif(B2:B500,"G")*vlookup(AA2,Q2:R5,2,false) [so it
first counts how many times "G" appears and then multiplies it against
the corresponding value you created earlier.]

....repeat for H,I, etc.


Jim



On Oct 15, 4:07 pm, diydan48
wrote:
in cell b3 I want to store the letter H to indicate a holiday has been taken.
I then need the total column at the end of the week to be able to look at the
H and use it as 7.5. Indicating that 7.5hrs of holiday has been used.


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
Is it possible? DakotaNJ Excel Worksheet Functions 25 September 18th 06 09:30 PM
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 03:34 AM
how do I insert a formula into Excel and number not disappear? Ruth Setting up and Configuration of Excel 1 July 22nd 06 09:35 AM
resetting last cell jagdish.eashwar Excel Discussion (Misc queries) 11 March 31st 06 02:06 AM
Help! How do you get excel to find the x(changes daily, marked in a cell from another formula) highest numbers in a group of numbers and sum them up? C-Man23 Excel Worksheet Functions 1 January 9th 06 01:23 PM


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