Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
What does the "&" do in a function?
I see the "&" in a lot of the answers here. What does that do or mean?
|
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
What does the "&" do in a function?
Hi
"&" is the concatenation character. With Roger in A1 and Govier in B1 =A1&" "&B1 would produce Roger Govier =A1&B1 would produce RogerGovier -- Regards Roger Govier "JPreeshl" wrote in message ... I see the "&" in a lot of the answers here. What does that do or mean? |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
What does the "&" do in a function?
It means the same as the CONCATENATE function but is much easier to type.
A1...........hello B1...........world =A1 & " " & B1 returns hello word =CONCATENATE(A1," ",B1) returns hello world Gord Dibben MS Excel MVP On Fri, 30 Mar 2007 13:44:03 -0700, JPreeshl wrote: I see the "&" in a lot of the answers here. What does that do or mean? |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
What does the "&" do in a function?
What does it mean in this function? With cell A1 having January in it.
=TEXT(DATE(0,MONTH(A1&"-0")+1,1),"mmmm") "Roger Govier" wrote: Hi "&" is the concatenation character. With Roger in A1 and Govier in B1 =A1&" "&B1 would produce Roger Govier =A1&B1 would produce RogerGovier -- Regards Roger Govier "JPreeshl" wrote in message ... I see the "&" in a lot of the answers here. What does that do or mean? |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
What does the "&" do in a function?
The adds a month to a text representation of a month by converting the text
month in A1 to the first numerical day of the next month in year 1900. That is what the date function does and the ampersand part returns "August-00" if A1 contains August which is read as a numerical date by excel then it adds one month, then it converts it to text again by wrapping the TEXT function around it So assuming A1 holds August the formula will return September It is a clever way of adding a month to a text date A shorter way =TEXT(31+(A1&"-0"),"mmmm") Regards, Peo Sjoblom "JPreeshl" wrote in message ... What does it mean in this function? With cell A1 having January in it. =TEXT(DATE(0,MONTH(A1&"-0")+1,1),"mmmm") "Roger Govier" wrote: Hi "&" is the concatenation character. With Roger in A1 and Govier in B1 =A1&" "&B1 would produce Roger Govier =A1&B1 would produce RogerGovier -- Regards Roger Govier "JPreeshl" wrote in message ... I see the "&" in a lot of the answers here. What does that do or mean? |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
What does the "&" do in a function?
It means the same thing - "concatenate".
But, what it's doing here is changing a Text entry of the name of a month to an XL recognized actual date value. If you type January in A1 of a new, empty sheet, all you'll see in the formula bar is January. Now click in A1 again and add -0 (that's zero, *not* the letter O) To the end of January, then see what happens in the cell and in the formula bar. The formula is doing exactly the same thing by adding (concatenating) the -0 to the text month name, making XL convert it to an actual date. -- HTH, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- "JPreeshl" wrote in message ... What does it mean in this function? With cell A1 having January in it. =TEXT(DATE(0,MONTH(A1&"-0")+1,1),"mmmm") "Roger Govier" wrote: Hi "&" is the concatenation character. With Roger in A1 and Govier in B1 =A1&" "&B1 would produce Roger Govier =A1&B1 would produce RogerGovier -- Regards Roger Govier "JPreeshl" wrote in message ... I see the "&" in a lot of the answers here. What does that do or mean? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Text "comparison" operator for "contains" used in an "IF" Function | Excel Worksheet Functions | |||
embedding "ISERROR" function into an "IF" statement | Excel Worksheet Functions | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel | |||
inserting a conditional "go to" command on a excel "if" function | Excel Worksheet Functions |