Need help with a formula to validate a cell based on minimum spend please!

ianbeale

New Member
Joined
Nov 30, 2016
Messages
1
Hi all, need any help possible. I'm not sure if my wording is correct but i will try to explain the best i can.

I have an excel document providing prices for a glass company. This first table shows a few examples of the list of products i have on the first sheet.
ProductPrice Exc VATPrice Inc VATMinimum Spend
4mm Clear45.83557.50
4mm Tough54.176510
6mm Clear62.57612

<tbody>
</tbody>


I then have a second sheet linked with it that works out prices and calculates quotes. The product column contains drop down lists for the staff to pick the product from and then a total is worked out based on the sizes provided. However i want to have some form of data validation that looks at the product selected and the total its come but then refers back to the first table to ensure its over the minimum spend.
ProductPriceLength WidthTotal
*drop down list###*formula based on P,L,W

<tbody>
</tbody>


I'm sure its pretty simple to generate something like this and 'im guessing using IF formulas but i cannot get it right and have been trying it for hours and cant get anywhere. Cant someone please help!

Thanks :)
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
ok lets try this

******NOTE change the sheet names in the formula to represent your sheet names

first I am assuming you have your drop down list created.

this starts in Cell A2 of sheet 2

In B2 the following formula

Code:
=IF(ISNA(VLOOKUP($A2,Ianbeale1!$A$2:$C$4,3,0)),0,VLOOKUP($A2,Ianbeale1!$A$2:$C$4,3,0))

in Cell E2 (Total Column) enter this formula
for some reason the formula is not saving correctly even using code tags. So I am gonna try breaking it up. the following is all one formula so combine them in the order they appear.

Code:
=IF(OR($C2<=0,$D2<=0),"Please enter both Length and/or Width.  Can not be 0 or blank"

add a comma "," between these two parts
Code:
IF(SUM($B2*SUM($C2*$D2))<VLOOKUP($A2,Ianbeale1!$A$2:$D$4,4,0),"Minimum Spend Amount not reached",B2*SUM(C2*D2))

then a less than symbol

then this

Code:
VLOOKUP($A2,Ianbeale1!$A$2:$D$4,4,0),"Minimum Spend Amount not reached",B2*SUM(C2*D2))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,600
Members
449,038
Latest member
Arbind kumar

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