View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Anders Wåhlin Anders Wåhlin is offline
external usenet poster
 
Posts: 2
Default Cell value programming question

Hi!

In my Excel sheet I want to be able to enter two different values in a cell.
The base value is percent (%) but if I enter the value in hours the value
should be recalculated into percent (%). For example:

100% = 8 hours.

If I enter 20, the cell should leave the value as is.
If I enter 5h (note the 'h' character), the new value should be 62.5 since 5
hours is 62.5% of 8 hours.

Do you understand my question?

I use Excel 2000.

Thanks!
Regards
/Anders