If and or help

lau05116

New Member
Joined
Nov 22, 2010
Messages
11
Can some one help me how to write the formula For

If J3= RH170 AND J4= Backhoe AND J5=Electric

Display no1 in D6

OR IF J3=RH170 AND J4=Backhoe AND J5=engine

Display no2 in D6
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Two ways I can think of:
Code:
=IF(AND(J3="RH170",J4="Backhoe",J5="Electric"),1,IF(AND(J3="RH170",J4="Backhoe",J5="Engine"),2,""))

or

Code:
=IF(AND(J3="RH170",J4="Backhoe"),IF(J5="Electric",1,IF(J5="Engine",2,"")),"")
 
Upvote 0
Code:
=IF(J3&"/"&J4&"/"&J5="RH170/Backhoe/Electric","no1",IF(J3&"/"&J4&"/"&J5="RH170/Backhoe/engine","no2",""))
 
Upvote 0
Can some one help me how to write the formula For

If J3= RH170 AND J4= Backhoe AND J5=Electric

Display no1 in D6

OR IF J3=RH170 AND J4=Backhoe AND J5=engine

Display no2 in D6

As J3 and J4 are common in both arguments it is sufficient to compare only J5,
Formula in D6
=IF(J5="","",IF(J5="Electric",1,2))
 
Upvote 0
Both ways sugested just return a blank box no errors come up in the page but also nothing else ideas any1
 
Upvote 0
Try this?

D6=IF(AND(J3="RH170",J4="Backhoe",J5="Electric"),"no1",IF(AND(J3="RH170",J4="Backhoe",J5="engine"),"no2",""))

Let me know if it works,
Jesse
 
Upvote 0
I think you are confusing most people with what you are looking for than, because I tested myn and it seems to work, so can you try to explain a little better for us about what you are looking for.
Thanks,
Jesse
 
Upvote 0
Tested both my examples - they both worked based on the criteria given:

If J3= RH170 AND J4= Backhoe AND J5=Electric

Display no1 in D6

OR IF J3=RH170 AND J4=Backhoe AND J5=engine

Display no2 in D6

You are putting the formula in cell D6 aren't you? :)
 
Upvote 0

Forum statistics

Threads
1,215,947
Messages
6,127,867
Members
449,410
Latest member
adunn_23

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