Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
"Lance Hebert" wrote:
This is what I have used: =IF(OR(L2={37,38}),M2&K2,L2&K2) but if L2 = 37 or 38, the result (which should be M2&K2) is actually the L2&K2 result. What would I have done wrong? "Lance Hebert" wrote in message ... This is what I have used: =IF(OR(L2={37,38}),M2&K2,L2&K2) but if L2 = 37 or 38, the result (which should be M2&K2) is actually the L2&K2 result. What would I have done wrong? "Joe User" wrote: "Lance Hebert" wrote: I want to be able to Concatenate say Column C and Column A if Column D=4, 5 or 6 or if Column D=11, 12 or 13 than Column C and Column B would be Conceatenated. Is this what you want: =if(OR(D1={4,5,6}), C1 & A1, if(OR(D1={11,12,13}), C1 & B1, "")) If D1 can contain __only__ one of the values 4, 5, 6, 11, 12 or 13, that can be simplified: =if(OR(D1={4,5,6}), C1 & A1, C1 & B1) or =C1 & if(OR(D1={4,5,6}, A1, B1) Also, if D1 is text, not numeric, you need to write OR(D1={"4","5","6"}) and OR(D1={"11","12","13"}). ----- original message ----- "Lance Hebert" wrote in message ... I have three columns that I am trying to Concatenate. I only need to combine two columns at a time, but I want to be able to Concatenate say Column C and Column A if Column D=4, 5 or 6 or if Column D=11, 12 or 13 than Column C and Column B would be Conceatenated. Is this possible? I know how to put in the IF function, but can the IF function have a number of possibilites in it? Thanks so much for all of your help. . |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
What's Wrong: Concatenation and Function | Excel Worksheet Functions | |||
Concatenation | Excel Discussion (Misc queries) | |||
Concatenation | Excel Worksheet Functions | |||
Concatenation | Excel Discussion (Misc queries) | |||
Concatenation using IF AND - Possible? | Excel Worksheet Functions |