Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
formula using percentage question
 
Posts: n/a
Default formula cell value multiply by percentage

I am trying to create a formula for the following:
If cell D5<$100 then multiply by 25% in cell G5
If cell D5=$100 and <$999 then multiply by 20% in cell G5
If cell D5$999 then multiply by 15% in cell G5
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Michael M
 
Posts: n/a
Default formula cell value multiply by percentage


=IF(D5<100,D5*0.25,IF(D5<999,D5*0.2,D5*0.15))

What happens if D5 = 100 OR 999

HTH
Michael M

"formula using percentage question" wrote:

I am trying to create a formula for the following:
If cell D5<$100 then multiply by 25% in cell G5
If cell D5=$100 and <$999 then multiply by 20% in cell G5
If cell D5$999 then multiply by 15% in cell G5

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default formula cell value multiply by percentage

"formula using percentage question" wrote:
I am trying to create a formula for the following:
If cell D5<$100 then multiply by 25% in cell G5
If cell D5=$100 and <$999 then multiply by 20% in cell G5
If cell D5$999 then multiply by 15% in cell G5


Assuming the line:
If cell D5$999 then multiply by 15% in cell G5


actually should have read as:
If cell D5=$999 then multiply by 15% in cell G5

(for consistency reasons <g)

then one way is to use VLOOKUP with a standalone table_array ..

In G5:
=IF(D5="","",D5*VLOOKUP(D5,{0,0.25;100,0.2;999,0.1 5},2))

Copy G5 down if required,
to return correspondingly for other values in D6, D7, ...
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default formula cell value multiply by percentage

Hi!

Try this:

=G5*LOOKUP(D5,{"",0,1,100,1000},{0,0,0.25,0.2,0.15 })

If D5 is either empty, zero or a formula blank the result will be 0.

Biff

"formula using percentage question" <formula using percentage
wrote in message
...
I am trying to create a formula for the following:
If cell D5<$100 then multiply by 25% in cell G5
If cell D5=$100 and <$999 then multiply by 20% in cell G5
If cell D5$999 then multiply by 15% in cell G5



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
assign formula to another cell Dannycol Excel Worksheet Functions 3 May 12th 06 09:46 PM
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 08:26 AM.

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"