Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
EG EG is offline
external usenet poster
 
Posts: 38
Default Function question

I have the following formula that multiplies the number entered in G21 by
either 49/12 or 45/12 depending if the first letter in G20 is "h" or "s".

=ROUND(IF(LEFT(G20,1)="h",(49/12)*G21,IF(LEFT(G20,1)="s",(45/12)*G21))

I would like to modify this so that the above is true for numbers entered
into
G21 that are 60 or less but greater than 0. Then, for every amount more than
60, i would like it to add 30/12 times that amount. For example:

if the number entered into G21 is 50 and G20 is "h", then the answer would be:
50*(49/12)=204.16 or 204 (rounded)

if the number entered into G21 is 65 and G20 is "h", then the anwer would be:
60*(49/12)+5*(30/12)=

Can anyone give me a little help with this?

Thanks,
EG



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Function question

I think I've seen this earlier today, with an answer - why have you
re-posted?

Pete

EG wrote:
I have the following formula that multiplies the number entered in G21 by
either 49/12 or 45/12 depending if the first letter in G20 is "h" or "s".

=ROUND(IF(LEFT(G20,1)="h",(49/12)*G21,IF(LEFT(G20,1)="s",(45/12)*G21))

I would like to modify this so that the above is true for numbers entered
into
G21 that are 60 or less but greater than 0. Then, for every amount more than
60, i would like it to add 30/12 times that amount. For example:

if the number entered into G21 is 50 and G20 is "h", then the answer would be:
50*(49/12)=204.16 or 204 (rounded)

if the number entered into G21 is 65 and G20 is "h", then the anwer would be:
60*(49/12)+5*(30/12)=

Can anyone give me a little help with this?

Thanks,
EG


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
Public Function Question Carl Excel Worksheet Functions 7 August 31st 06 08:15 PM
Need some comments on my Utility_Move class module. jchen Excel Worksheet Functions 0 August 21st 06 07:05 PM
MATCH function, exclusion question Paul Lautman Excel Discussion (Misc queries) 4 July 21st 06 04:53 AM
Average function question Sum Limit and marking Excel Worksheet Functions 4 July 8th 06 12:51 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM


All times are GMT +1. The time now is 01:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"