Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 65
Default Discounts within Ranges

Hi!

Im trying to discount from range("A1") if its value is between a set of
values i.e 500 to 1000 would 5%

the below cell would be range A3 TO B6

0 - 1000 5%
1001 - 2000 7.5%
2001 - 3000 10.0%
3001 + 12.5%

and I would like to populate cells c3 to c6 by macro

Thanks in advance

Darren

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200611/1

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,726
Default Discounts within Ranges

=INDEX(B3:B6,MATCH(1,(----TRIM(LEFT(A3:A6,FIND("-",A3:A6)-1))<=A1)*(--TRIM(MID(A3:A6,FIND("-",A3:A6)+1,99))=A1),0))

which is an array formula, you need to commit with Ctrl-Shift-Enter, not
just Enter.

--
HTH

Bob

(change the xxxx to gmail if mailing direct)
"FIRSTROUNDKO via OfficeKB.com" <u15639@uwe wrote in message
news:6a1271b918a67@uwe...
Hi!

Im trying to discount from range("A1") if its value is between a set of
values i.e 500 to 1000 would 5%

the below cell would be range A3 TO B6

0 - 1000 5%
1001 - 2000 7.5%
2001 - 3000 10.0%
3001 + 12.5%

and I would like to populate cells c3 to c6 by macro

Thanks in advance

Darren

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200611/1



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
discounts on LA events windsurferLA Excel Worksheet Functions 0 May 10th 06 07:50 AM
3 different discounts help ! tommytowbar Excel Worksheet Functions 4 October 20th 05 03:43 PM
Calculate discounts within a pricelist Oldcowboyjim Excel Discussion (Misc queries) 1 August 4th 05 10:44 PM
limit a value using discounts Duncan, UK Excel Worksheet Functions 4 January 20th 05 06:07 PM
Limit a sum using discounts Duncan, UK Excel Discussion (Misc queries) 4 January 20th 05 05:21 PM


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