Combine Formula

Johnboy28

Board Regular
Joined
Jun 22, 2013
Messages
172
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2013
  5. 2010
Platform
  1. Windows
Hi,

Is it possible to combine the below into one formula?

If Room 1 - Receival & Room 2 - Receival equal 0 Return "In Transit"
If cell equals Receival 1 & Entry 1 Return "Processed" & If cell equals Receival 2 & Entry 2 Return "Processed"

Room 1 - ReceivalRoom 1 - EntryRoom 2 - ReceivalRoom 2 - EntryLocation
0000???
Receival 1Entry 100
0Entry 100
0Entry 1Receival 2Entry 2
0000
Receival 1Entry 1Receival 2Entry 2
Receival 1Entry 100
Receival 1Entry 1Receival 2Entry 2
0000
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Updated
If Room 1 - Receival & Room 2 - Receival equal 0 Return "In Transit"
If cell equals Receival 1 & Entry 1 Return "Processed" & If cell equals Receival 2 & Entry 2 Return "Processed" & If cell equals Receival 1 & Receival 2 with no Entry retuen "In Chiller"

Room 1 - ReceivalRoom 1 - EntryRoom 2 - ReceivalRoom 2 - EntryLocation
0000???
Receival 1Entry 100
0Entry 100
0Entry 1Receival 2Entry 2
0000
Receival 1Entry 1Receival 2Entry 2
Receival 1Entry 100
Receival 1Entry 1Receival 2Entry 2
Receival 1000
00Receival 20
0000
 
Upvote 0
Maybe...UNTESTED
Excel Formula:
=IF(AND(A2=0,C2=0),"In Transit",IF(A2=B2,"Processed",IF(C2=D2,"Processed","")))
 
Upvote 0
Try this:

Mr excel questions 59.xlsm
ABCDE
1Room 1 - ReceivalRoom 1 - EntryRoom 2 - ReceivalRoom 2 - EntryLocation
20000In Transit
3Receival 1Entry 100Processed
40Entry 100In Transit
50Entry 1Receival 2Entry 2Unknown
60000In Transit
7Receival 1Entry 1Receival 2Entry 2Processed
8Receival 1Entry 100Processed
9Receival 1Entry 1Receival 2Entry 2Processed
100000In Transit
JohnBoy28
Cell Formulas
RangeFormula
E2:E10E2=IF(AND($A2=0,$C2=0),"In Transit", IF(AND($A2="Receival 1",$B2="Entry 1"),"Processed", IF(AND($C2="Retreival 2",$D2="Entry 2"),"Processed","Unknown")))
 
Upvote 0
Try this:

Mr excel questions 59.xlsm
ABCDE
1Room 1 - ReceivalRoom 1 - EntryRoom 2 - ReceivalRoom 2 - EntryLocation
20000In Transit
3Receival 1Entry 100Processed
40Entry 100In Transit
50Entry 1Receival 2Entry 2Unknown
60000In Transit
7Receival 1Entry 1Receival 2Entry 2Processed
8Receival 1Entry 100Processed
9Receival 1Entry 1Receival 2Entry 2Processed
100000In Transit
JohnBoy28
Cell Formulas
RangeFormula
E2:E10E2=IF(AND($A2=0,$C2=0),"In Transit", IF(AND($A2="Receival 1",$B2="Entry 1"),"Processed", IF(AND($C2="Retreival 2",$D2="Entry 2"),"Processed","Unknown")))
@awoohaw I think you did the same as me - worked out solution while the OP was in the process of adding another condition...
 
Upvote 0
Okay, try this:

Mr excel questions 59.xlsm
ABCDE
1Room 1 - ReceivalRoom 1 - EntryRoom 2 - ReceivalRoom 2 - EntryLocation
20000In Transit
3Receival 1Entry 100Processed
40Entry 100In Transit
50Entry 1Receival 2Entry 2Unknown
60000In Transit
7Receival 1Entry 1Receival 2Entry 2Processed
8Receival 1Entry 100Processed
9Receival 1Receival 2In Chiller
100000In Transit
JohnBoy28
Cell Formulas
RangeFormula
E2:E10E2=IF(AND($A2=0,$C2=0),"In Transit", IF(AND($A2="Receival 1",$B2="Entry 1"),"Processed", IF(AND($C2="Retreival 2",$D2="Entry 2"),"Processed", IF(AND($A2="Receival 1",$C2="Receival 2"),"In Chiller", "Unknown" ))))
 
Upvote 0
Okay, try this:

Mr excel questions 59.xlsm
ABCDE
1Room 1 - ReceivalRoom 1 - EntryRoom 2 - ReceivalRoom 2 - EntryLocation
20000In Transit
3Receival 1Entry 100Processed
40Entry 100In Transit
50Entry 1Receival 2Entry 2Unknown
60000In Transit
7Receival 1Entry 1Receival 2Entry 2Processed
8Receival 1Entry 100Processed
9Receival 1Receival 2In Chiller
100000In Transit
JohnBoy28
Cell Formulas
RangeFormula
E2:E10E2=IF(AND($A2=0,$C2=0),"In Transit", IF(AND($A2="Receival 1",$B2="Entry 1"),"Processed", IF(AND($C2="Retreival 2",$D2="Entry 2"),"Processed", IF(AND($A2="Receival 1",$C2="Receival 2"),"In Chiller", "Unknown" ))))
Thanks for your help. The formula work good. Can you please change so if Receival 1 or Receival 2 is present even by just receival 1 will show "In chiller" Sample below.
Room 1 - ReceivalRoom 1 - EntryRoom 2 - ReceivalRoom 2 - EntryLocation
Receival 1000In chiller
00Receival 20In Chiller
 
Upvote 0
change the AND in the 4th IF to an OR.

My pleasure.

Excel Formula:
=IF(AND($A2=0,$C2=0),"In Transit", IF(AND($A2="Receival 1",$B2="Entry 1"),"Processed", IF(AND($C2="Retreival 2",$D2="Entry 2"),"Processed", IF(OR($A2="Receival 1",$C2="Receival 2"),"In Chiller", "Unknown" ))))

Best Wishes!
 
Upvote 0
change the AND in the 4th IF to an OR.

My pleasure.

Excel Formula:
=IF(AND($A2=0,$C2=0),"In Transit", IF(AND($A2="Receival 1",$B2="Entry 1"),"Processed", IF(AND($C2="Retreival 2",$D2="Entry 2"),"Processed", IF(OR($A2="Receival 1",$C2="Receival 2"),"In Chiller", "Unknown" ))))

Best Wishes!
Perfect - Thank you. Appreciate it.
 
Upvote 0

Forum statistics

Threads
1,215,187
Messages
6,123,540
Members
449,107
Latest member
caya

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