简体   繁体   中英

Concatenate Excel cell value from another sheet

I have just starting to use excel (to do something other than just open csv files)

I have Sheet1 and Sheet2. Sheet1!A1 is "1"

In Sheet2 A1 I would like to have

<myelement myattribute="1"/>

I have tried concatenating using & but it doesn't work.

Please try the following formula

="<myelement myattribute="&char(34)&text(Sheet1!A1,"0")&char(34)&"/>"

  • Char(34) meaning "
  • Text(Number, Format) converts the number to a string

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM