Trying to use & with IF AND statement

jgold20

Board Regular
Joined
Feb 4, 2018
Messages
135
Am I able to put the results of a drop-down menu selection in A3 in the false result of an IF AND statement using an &. The location is highlighted in RED



=IF(OR(A3="D",A3="DT",A3="GE",A3="H",A3="K",A3="L",A3="LG",A3="M",A3="N",A3="NO",A3="Q",A3="R",A3="SR",A3="V",A3="VI",A3="X",A3="Y"),IF(AND(D15>0,D15<200),"CF < 200",""),
IF(OR(A3="B",A3="W"),IF(AND(D15>0,D15<286),"CF < 286",""),
IF(OR(A3="MD",A3="MN"),IF(AND(D15>0,D15<300),"CF < 300",""),"")))
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
you can replace the red highlighted part along with the Quotes ("") with a cell address and it will return the value from that address
 
Last edited:
Upvote 0
I need to keep the red highlighted part I would like it to look like - "result of A3 CF < 200" for the first if and so on
 
Upvote 0
not sure i follow what you mean but the (&) ampersand will concatenate values into a string... so maybe you want to do...

Code:
"The Result of A3 is " & A3
 
Upvote 0
Tried that and received this result
[TABLE="width: 103"]
<colgroup><col width="103" style="width: 77pt;"></colgroup><tbody>[TR]
[TD="class: xl70, width: 103, align: center"]& a3 CF < 200[/TD]
[/TR]
</tbody>[/TABLE]

I was looking for
[TABLE="width: 103"]
<colgroup><col width="103" style="width: 77pt;"></colgroup><tbody>[TR]
[TD="class: xl72, width: 103, align: center"]D CF < 200[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
So the part you have in Red should most likely now look like this:

Code:
a3&[COLOR=#333333]" [/COLOR][COLOR=#ff0000]CF < 200[/COLOR][COLOR=#333333]"[/COLOR]
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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