IF conditions met then Calcluation is performed.

Rahuluk

New Member
Joined
Jun 28, 2020
Messages
7
Office Version
  1. 365
Platform
  1. MacOS
Fellow ExcelERs,

I am trying to write a formula whereby if a certain value is selected in a cell from a dropdown list it is then looked up in an array table and there will be a value (%) in index column 2 and a calculation is performed base on it being multiplied by the value of another cell. However if a lookup value needs to have a return value of <=1 (max £1.00) then how can I incorporate this into the formula.

A lookup calculation of a certain value maybe £1.25 but I would like the value returned to be £1.00. If the same lookup value calculation generates a value of £0.75 then this will remain as the value.

What I am trying to achieve is an accounting spreadsheet where certain costs where selling promotions are applied a MAX selling fee regardless of the actual selling fee will be applied.

Many thanks on any thoughts.

Rahul
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Ok, difficult to know what you want without seeing the layout but something like this

=IF(A1>=1,VLOOKUP(1,C1:D12,2,FALSE),VLOOKUP(A1,C1:D12,2,FALSE))

where
A1 = your dropdown value/lookup value
C1:D12 = is your lookup range
 
Upvote 0
Do you have any data or formula you're currently working on?
=IF(A1>=1,"1", A1)
This was working, assuming you're using A1 as your reference point, and needing the figure in a different cell
 
Upvote 0
Ok, difficult to know what you want without seeing the layout but something like this

=IF(A1>=1,VLOOKUP(1,C1:D12,2,FALSE),VLOOKUP(A1,C1:D12,2,FALSE))

where
A1 = your dropdown value/lookup value
C1:D12 = is your lookup range


Hi Dave87,

Thanks for your reply. Just so that you have more information on what I am currently inputting see attached image.
The formula is in N9.
Say for example the BLUE CELL selected is EBY PROMO, if this is the case the FINAL SALE VALUE must be multiplied by the lookup value N24 15%. However, if this calculation meant the value is greater than £1.00 then I would like the PLATFORM FEE to remain at MAX £1.00. If for example the calculation retrieved less than £1.00 (i.e. £0.75) then I would like the lower value to be set.

If for example the BLUE CELL was EBY (this is a dropdown list) then the lookup value for the calculation is set to 9% however for this Selected platform I DO NOT want the £1.00 condition applied. If the calculation is >£1.00 then that's fine. This condition I want only for EBY PROMO.

I hope this is clear now.

Thank you for your prompt reply.

Rahul
Screen Shot 2020-06-29 at 08.04.29.png
 
Upvote 0
Hi Butty578

Thanks for your reply. Just so that you have more information on what I am currently inputting see attached image.
The formula is in N9.
Say for example the BLUE CELL selected is EBY PROMO, if this is the case the FINAL SALE VALUE must be multiplied by the lookup value N24 15%. However, if this calculation meant the value is greater than £1.00 then I would like the PLATFORM FEE to remain at MAX £1.00. If for example the calculation retrieved less than £1.00 (i.e. £0.75) then I would like the lower value to be set.

If for example the BLUE CELL was EBY (this is a dropdown list) then the lookup value for the calculation is set to 9% however for this Selected platform I DO NOT want the £1.00 condition applied. If the calculation is >£1.00 then that's fine. This condition I want only for EBY PROMO.

I hope this is clear now.

Thank you for your prompt reply.

Rahul
View attachment 17175
 
Upvote 0
Ok so thats a different question than you asked before, try this formula. Why multiply by 1.2? i've kept it in assuming its required...

=IF(I9="EBY PROMO",IF(VLOOKUP(I9,$M$22:$N$23,2,FALSE)*L9*1.2>1,1,VLOOKUP(I9,$M$22:$N$23,2,FALSE)*L9*1.2),(VLOOKUP(I9,$M$22:$N$23,2,FALSE)*L9*1.2))
 
Upvote 0
Ok so thats a different question than you asked before, try this formula. Why multiply by 1.2? i've kept it in assuming its required...

=IF(I9="EBY PROMO",IF(VLOOKUP(I9,$M$22:$N$23,2,FALSE)*L9*1.2>1,1,VLOOKUP(I9,$M$22:$N$23,2,FALSE)*L9*1.2),(VLOOKUP(I9,$M$22:$N$23,2,FALSE)*L9*1.2))

Hi Dave,

The multiplication by 1.2 is to factor in VAT element. As the Lookup value is a drop list and therefore not always selected will it return a #N/A error. How can we get rid of this?

Thanks
Rahul
 
Upvote 0
what do you want to happen when the drop down list is blank?
 
Upvote 0
try

=IFERROR(IF(I9="EBY PROMO",IF(VLOOKUP(I9,$M$22:$N$23,2,FALSE)*L9*1.2>1,1,VLOOKUP(I9,$M$22:$N$23,2,FALSE)*L9*1.2),(VLOOKUP(I9,$M$22:$N$23,2,FALSE)*L9*1.2)),0)
 
Upvote 0

Forum statistics

Threads
1,215,076
Messages
6,122,988
Members
449,093
Latest member
Mr Hughes

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top