Help Needed to Simplify Formula with Multiple Cominations with Multiple Variables

xtreme07

Board Regular
Joined
Sep 21, 2010
Messages
71
Hi,

i have a formula that needs to be simplified in excel as there's many variables and i would end up spending a lot of time on it.

this is the formula
=
IF(AND(A1<=10,B1<=10,C1<=10,D1<=10),"1.1.1.1"
IF(AND(A1>=20,B1<=10,C2<=10,D1<=10),"2.1.1.1",
,"FALSE")

the same formula has more lines, in which A1 needs to meet some more numbers criteria. i've just decided to have it short to outline the basics of it.

as you might have noticed, there's 3 PRINT modes:
PRINT1 = 1.1.1.1
PRINT2 = 2.1.1.1
PRINT3 = FALSE

in PRINT2, the A1 criteria has changed, which is why i asked that it will PRINT 2.1.1.1 if the criteria is true
else, if the criteria is not true, it will PRINT false (PRINT3)

THE ISSUE that i have is that this formula that i'm using will have many combinations .. about 15 combinations if not more.
WONDERING if there's a way i can ease my pain in excel.


excel likeA
B
C
D
E
1
161112
2
10192840
3
4581718
4
22422532
5
32334773
6
4593691

<tbody>
</tbody>
 
Last edited:

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
if it's any number between and including 11 - 19, it would show FALSE - because i haven't associated any condition for these values

In that case, you'll need to provide more details. For the 6 rows of data you posted as a sample, can you also posted the desired results. Also, are you open to using VBA, or does this have to be a formula?
 
Upvote 0
In that case, you'll need to provide more details. For the 6 rows of data you posted as a sample, can you also posted the desired results. Also, are you open to using VBA, or does this have to be a formula?

i'm open to anything that helps me make things easier for me.
i'll post more details in just a few ...
 
Upvote 0
the only way i know how to show you what i need is by giving a sample of this in excel
download link is mrexcel.xtreme07

it works in excel 2007 or above

if you need some more info, or you can't / won't use the file, please let me know.
also if you'd prefer me to use more words to explain what is needed, let me know ...

i just don't know how to make it more easy for you to see what is needed ...
at some point the formula will output based on the values each of these ...

1.1.1.1
1.2.1.1
1.3.1.1
1.4.1.1

2.1.1.1
2.2.1.1
2.3.1.1
2.4.1.1

and etc
 
Last edited:
Upvote 0
i've just got an idea of how to make it easier to understand what i need
i'll post it in 30-60 min ..
 
Upvote 0
atm the formula looks like this
Code:
=
IF(AND(A1<=10,B1<=10,C1<=10,D1<=10),"1.1.1.1"
IF(AND([U]A1>=20[/U],B1<=10,C2<=10,D1<=10),"2.1.1.1",
,"FALSE")

this translates to
Code:
=
IF(AND([U]condition1.1[/U],condition2.1,condition3.1,condition4.1),"[B]1[/B].1.1.1"
IF(AND([U]condition1.2[/U],condition2.1,condition3.1,condition4.1),"[B]2[/B].1.1.1"
IF(AND([U]condition1.3[/U],condition2.1,condition3.1,condition4.1),"[B]3[/B].1.1.1"
IF(AND([U]condition1.4[/U],condition2.1,condition3.1,condition4.1),"[B]4[/B].1.1.1"

IF(AND(condition1.1,[U]condition2.1[/U],condition3.1,condition4.1),"1.[B]1[/B].1.1"
IF(AND(condition1.1,[U]condition2.2[/U],condition3.1,condition4.1),"1.[B]2[/B].1.1"
IF(AND(condition1.1,[U]condition2.3[/U],condition3.1,condition4.1),"1.[B]3[/B].1.1"
IF(AND(condition1.1,[U]condition2.4[/U],condition3.1,condition4.1),"1.[B]4[/B].1.1"

IF(AND(condition1.1,condition2.1,[U]condition3.1[/U],condition4.1),"1.1.[B]1[/B].1"
IF(AND(condition1.1,condition2.1,[U]condition3.2[/U],condition4.1),"1.1.[B]2[/B].1"
IF(AND(condition1.1,condition2.1,[U]condition3.3[/U],condition4.1),"1.1.[B]3[/B].1"
IF(AND(condition1.1,condition2.1,[U]condition3.4[/U],condition4.1),"1.1.[B]4[/B].1"

IF(AND(condition1.1,condition2.1,condition3.1,[U]condition4.1[/U]),"1.1.1.[B]1[/B]"
IF(AND(condition1.1,condition2.1,condition3.1,[U]condition4.2[/U]),"1.1.1.[B]2[/B]"
IF(AND(condition1.1,condition2.1,condition3.1,[U]condition4.3[/U]),"1.1.1.[B]3[/B]"
IF(AND(condition1.1,condition2.1,condition3.1,[U]condition4.4[/U]),"1.1.1.[B]4[/B]"
,"NOT INTERESTED")

the formula would be much longer.
what i showed is just a draft as it can also be like
Later Edit:
Code:
=
IF(AND(condition1.1,[U]condition2.1[/U],condition3.1,[U]condition4.1[/U]),"1.[B]1[/B].1.[B]1[/B]"
IF(AND(condition1.1,[U]condition2.2[/U],condition3.1,[U]condition4.2[/U]),"1.[B]2[/B].1.[B]2[/B]"
IF(AND(condition1.1,[U]condition2.3[/U],condition3.1,[U]condition4.3[/U]),"1.[B]3[/B].1.[B]3[/B]"
IF(AND(condition1.1,[U]condition2.4[/U],condition3.1,[U]condition4.4[/U]),"1.[B]4[/B].1.[B]4[/B]"

UNDERLINED and BOLD represent the changes
the other ones are unchanged

note that a combination is made up of 4 conditions (condition1.1, condition2.1,condition3.1,condition4.1)
each of these conditions is being a variable.

in a combination, each condition reads a cell from the same row.
when one of the conditions that is read is different, then it would print the location of where the change has happened.

each condition has assigned a number:

condition1.1 (aka conditionA.1) has 1 assigned
condition1.2 (aka conditionA.2) has 2 assigned

condition2.1 (aka conditionB.1) has 1 assigned
condition2.2 (aka conditionB.1) has 2 assigned

and so on ...

i hope this makes it easier to understand
for any question, feel free to write ...
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,818
Members
449,049
Latest member
cybersurfer5000

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