Logic Problem With 4 Variables

bdbrew

New Member
Joined
May 13, 2016
Messages
11
Hello,
I need a formula to compare a single value to 4 variables and return TRUE or FALSE. In the table below, the answer should be TRUE when the Pick value matches the Color or the Shape AND the matching Color or Shape has the higher % (within the row). If the Pick value matches the lower %, then return FALSE.

ABCDEFGH
1ColorColor%ShapeShape%PICKRESULT
2Blue72Square28BlueTRUE
3Green14Triangle86TriangleTRUE
4Red40Circle60RedFALSE
5Yellow97Rectangle3RectangleFALSE

<tbody>
</tbody>

Thank you very much,
bd
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Thanks Neil,
This formula works when the Pick matches the color and the % is higher for the color, however, it is returning FALSE when the Pick matches the Shape and the % is higher for the Shape. This should be TRUE in that circumstance. Any suggestions?

thanks,
bd
 
Upvote 0
Sorry Neil, my bad. I needed to convert to actual column letters and missed one. It work great. Thanks!
 
Upvote 0

Forum statistics

Threads
1,216,297
Messages
6,129,954
Members
449,544
Latest member
Akhil333

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