![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Posts: 473
|
I need to produce a conditional sell price
dependant upont the cost price. E.G. A10 Could contain a cost price between £2 and £500. If the cost is between £2 - £20 I would like a cost price in A2 to be cost price plus 20%. If the cost is between £20 - £100 I would like a cost price in A2 to be cost price plus 15%. If the cost is between £100 - £500 I would like a cost price in A2 to be cost price plus 10%. Whats the formula please ? Thanks Ted |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
It's unclear what happens when A10 = 1, A10 > 500, and if A10 = 20, which mark-up should apply: 20% or 15% ? Given these caveats, you can use either: =A10*VLOOKUP(A10,{2,0.2;20,0.15;100,0.1},2)+A10 or, in a more controlled way: =IF(AND(ISNUMBER(A10),A10>=2,A10<=500),A10*((VLOOKUP(A10,{2,0.2;20,0.15;100,0.1},2)+1)),"") These formulas opt for 15% when A10 = 20 and 10% when A10 = 100. Aladin [ This Message was edited by: Aladin Akyurek on 2002-03-24 07:54 ] |
|
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
|
Hi Ted:
Here we go =IF(cost>500,"NA",IF(cost>=100,cost*110%,IF(cost>=20,cost*115%,IF(cost>=2,cost*120%,"NA")))) HTH Please post back if it works for you ... otherwise explain a little further and let us take it from there!
__________________
Regards! Yogi Anand, D.Eng, P.E. Energy Efficient Building Network LLC www.energyefficientbuild.com |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Mar 2002
Posts: 473
|
GREAT !!!!!!
Thanks all. So many different ways! They all seem to work fine. Thanks again for everyones efforts and time Regards Eddy |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|