shre0047

Board Regular
Joined
Feb 3, 2017
Messages
53
Office Version
  1. 365
Platform
  1. Windows
Can someone please help me simplify this ugly, brute force formula?

=IF(AND(OR(AND('File1'!BD:BD="3", 'File1'!BC:BC="240"), AND('File1'!BD:BD="4", 'File1'!BC:BC="240"), AND('File1'!BD:BD="5", 'File1'!BC:BC="240"), AND('File1'!BD:BD="6", 'File1'!BC:BC="240"), AND('File1'!BD:BD="7", 'File1'!BC:BC="240"), AND('File1'!BD:BD="8", 'File1'!BC:BC="240")),OR(AND('File1'!BO:BO="3", 'File1'!BN:BN="240"), AND('File1'!BO:BO="4", 'File1'!BN:BN="240"), AND('File1'!BO:BO="5", 'File1'!BN:BN="240"), AND('File1'!BO:BO="6", 'File1'!BN:BN="240"), AND('File1'!BO:BO="7", 'File1'!BN:BN="240"), AND('File1'!BO:BO="8", 'File1'!BN:BN="240")),OR(AND('File1'!BQ:BQ="3", 'File1'!BP:BP="240"), AND('File1'!BQ:BQ="4", 'File1'!BP:BP="240"), AND('File1'!BQ:BQ="5", 'File1'!BP:BP="240"), AND('File1'!BQ:BQ="6", 'File1'!BP:BP="240"), AND('File1'!BQ:BQ="7", 'File1'!BP:BP="240"), AND('File1'!BQ:BQ="8", 'File1'!BP:BP="240")),OR(AND('File1'!BS:BS="3", 'File1'!BR:BR="240"), AND('File1'!BS:BS="4", 'File1'!BR:BR="240"), AND('File1'!BS:BS="5", 'File1'!BR:BR="240"), AND('File1'!BS:BS="6", 'File1'!BR:BR="240"), AND('File1'!BS:BS="7", 'File1'!BR:BR="240"), AND('File1'!BS:BS="8", 'File1'!BR:BR="240")),OR(AND('File1'!BU:BU="3", 'File1'!BT:BT="240"), AND('File1'!BU:BU="4", 'File1'!BT:BT="240"), AND('File1'!BU:BU="5", 'File1'!BT:BT="240"), AND('File1'!BU:BU="6", 'File1'!BT:BT="240"), AND('File1'!BU:BU="7", 'File1'!BT:BT="240"), AND('File1'!BU:BU="8", 'File1'!BT:BT="240")),OR(AND('File1'!BW:BW="3", 'File1'!BV:BV="240"), AND('File1'!BW:BW="4", 'File1'!BV:BV="240"), AND('File1'!BW:BW="5", 'File1'!BV:BV="240"), AND('File1'!BW:BW="6", 'File1'!BV:BV="240"), AND('File1'!BW:BW="7", 'File1'!BV:BV="240"), AND('File1'!BW:BW="8", 'File1'!BV:BV="240")),OR(AND('File1'!BY:BY="3", 'File1'!BX:BX="240"), AND('File1'!BY:BY="4", 'File1'!BX:BX="240"), AND('File1'!BY:BY="5", 'File1'!BX:BX="240"), AND('File1'!BY:BY="6", 'File1'!BX:BX="240"), AND('File1'!BY:BY="7", 'File1'!BX:BX="240"), AND('File1'!BY:BY="8", 'File1'!BX:BX="240")),OR(AND('File1'!CA:CA="3", 'File1'!BZ:BZ="240"), AND('File1'!CA:CA="4", 'File1'!BZ:BZ="240"), AND('File1'!CA:CA="5", 'File1'!BZ:BZ="240"), AND('File1'!CA:CA="6", 'File1'!BZ:BZ="240"), AND('File1'!CA:CA="7", 'File1'!BZ:BZ="240"), AND('File1'!CA:CA="8", 'File1'!BZ:BZ="240")),OR(AND('File1'!CC:CC="3", 'File1'!CB:CB="240"), AND('File1'!CC:CC="4", 'File1'!CB:CB="240"), AND('File1'!CC:CC="5", 'File1'!CB:CB="240"), AND('File1'!CC:CC="6", 'File1'!CB:CB="240"), AND('File1'!CC:CC="7", 'File1'!CB:CB="240"), AND('File1'!CC:CC="8", 'File1'!CB:CB="240")),OR(AND('File1'!CE:CE="3", 'File1'!CD:CD="240"), AND('File1'!CE:CE="4", 'File1'!CD:CD="240"), AND('File1'!CE:CE="5", 'File1'!CD:CD="240"), AND('File1'!CE:CE="6", 'File1'!CD:CD="240"), AND('File1'!CE:CE="7", 'File1'!CD:CD="240"), AND('File1'!CE:CE="8", 'File1'!CD:CD="240")),OR(AND('File1'!CG:CG="3", 'File1'!CF:CF="240"), AND('File1'!CG:CG="4", 'File1'!CF:CF="240"), AND('File1'!CG:CG="5", 'File1'!CF:CF="240"), AND('File1'!CG:CG="6", 'File1'!CF:CF="240"), AND('File1'!CG:CG="7", 'File1'!CF:CF="240"), AND('File1'!CG:CG="8", 'File1'!CF:CF="240")),OR(AND('File1'!CI:CI="3", 'File1'!CH:CH="240"), AND('File1'!CI:CI="4", 'File1'!CH:CH="240"), AND('File1'!CI:CI="5", 'File1'!CH:CH="240"), AND('File1'!CI:CI="6", 'File1'!CH:CH="240"), AND('File1'!CI:CI="7", 'File1'!CH:CH="240"), AND('File1'!CI:CI="8", 'File1'!CH:CH="240")),OR(AND('File1'!CK:CK="3", 'File1'!CJ:CJ="240"), AND('File1'!CK:CK="4", 'File1'!CJ:CJ="240"), AND('File1'!CK:CK="5", 'File1'!CJ:CJ="240"), AND('File1'!CK:CK="6", 'File1'!CJ:CJ="240"), AND('File1'!CK:CK="7", 'File1'!CJ:CJ="240"), AND('File1'!CK:CK="8", 'File1'!CJ:CJ="240")),OR(AND('File1'!CM:CM="3", 'File1'!CL:CL="240"), AND('File1'!CM:CM="4", 'File1'!CL:CL="240"), AND('File1'!CM:CM="5", 'File1'!CL:CL="240"), AND('File1'!CM:CM="6", 'File1'!CL:CL="240"), AND('File1'!CM:CM="7", 'File1'!CL:CL="240"), AND('File1'!CM:CM="8", 'File1'!CL:CL="240")),OR(AND('File1'!CO:CO="3", 'File1'!CN:CN="240"), AND('File1'!CO:CO="4", 'File1'!CN:CN="240"), AND('File1'!CO:CO="5", 'File1'!CN:CN="240"), AND('File1'!CO:CO="6", 'File1'!CN:CN="240"), AND('File1'!CO:CO="7", 'File1'!CN:CN="240"), AND('File1'!CO:CO="8", 'File1'!CN:CN="240")),OR(AND('File1'!CQ:CQ="3", 'File1'!CP:CP="240"), AND('File1'!CQ:CQ="4", 'File1'!CP:CP="240"), AND('File1'!CQ:CQ="5", 'File1'!CP:CP="240"), AND('File1'!CQ:CQ="6", 'File1'!CP:CP="240"), AND('File1'!CQ:CQ="7", 'File1'!CP:CP="240"), AND('File1'!CQ:CQ="8", 'File1'!CP:CP="240")),OR(AND('File1'!CS:CS="3", 'File1'!CR:CR="240"), AND('File1'!CS:CS="4", 'File1'!CR:CR="240"), AND('File1'!CS:CS="5", 'File1'!CR:CR="240"), AND('File1'!CS:CS="6", 'File1'!CR:CR="240"), AND('File1'!CS:CS="7", 'File1'!CR:CR="240"), AND('File1'!CS:CS="8", 'File1'!CR:CR="240")),OR(AND('File1'!CU:CU="3", 'File1'!CT:CT="240"), AND('File1'!CU:CU="4", 'File1'!CT:CT="240"), AND('File1'!CU:CU="5", 'File1'!CT:CT="240"), AND('File1'!CU:CU="6", 'File1'!CT:CT="240"), AND('File1'!CU:CU="7", 'File1'!CT:CT="240"), AND('File1'!CU:CU="8", 'File1'!CT:CT="240")),OR(AND('File1'!CW:CW="3", 'File1'!CV:CV="240"), AND('File1'!CW:CW="4", 'File1'!CV:CV="240"), AND('File1'!CW:CW="5", 'File1'!CV:CV="240"), AND('File1'!CW:CW="6", 'File1'!CV:CV="240"), AND('File1'!CW:CW="7", 'File1'!CV:CV="240"), AND('File1'!CW:CW="8", 'File1'!CV:CV="240")),OR(AND('File1'!CY:CY="3", 'File1'!CX:CX="240"), AND('File1'!CY:CY="4", 'File1'!CX:CX="240"), AND('File1'!CY:CY="5", 'File1'!CX:CX="240"), AND('File1'!CY:CY="6", 'File1'!CX:CX="240"), AND('File1'!CY:CY="7", 'File1'!CX:CX="240"), AND('File1'!CY:CY="8", 'File1'!CX:CX="240")),), "240", "Low Value")
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Short answer - probably not, not without more info.

What are you trying to do?
That probably is not really working as you expect, because you cannot to a test like 'File1'!BD:BD="3" because
1. You cannot test an entire column like that
2. if you are looking for the value 3, then you need to remove the "" or it becomes text.

For a start, I would MAYBE approach it from this angle...
=IF(AND(OR(AND('File1'!BD:BD="3", 'File1'!BC:BC="240"), AND('File1'!BD:BD="4", 'File1'!BC:BC="240"), AND('File1'!BD:BD="5", 'File1'!BC:BC="240"), AND('File1'!BD:BD="6", 'File1'!BC:BC="240"), AND('File1'!BD:BD="7", 'File1'!BC:BC="240"),AND('File1'!BD:BD="8", 'File1'!BC:BC="240")),.................
=IF(bc2=240, if(or(bd2>=3, bd2<=8)),...................

However, without wading through that monster, I suspect you could probably use a 2-d lookup table, using INDEX/MATCH/MATCH
 
Upvote 0

Forum statistics

Threads
1,215,444
Messages
6,124,892
Members
449,194
Latest member
JayEggleton

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