How to copy values from two cells and paste in another cell, while preserving the format of both cells?

Amir

I have two cells in my excel sheet, one cell contains string such as below:

Gross amount:

while the other cell has currency in euros, for instance:

223.463.687€

Now I want to copy both of these values, i.e. "Gross amount:" and "223.463.687€" and past it into a third cell. The formula that I am using is this:

=(A42&""&B42)

and I get the following result:

Gross Amount: 223463687,150838

But I should have:

Gross Amount: 223.463.687€

NOTE:

The format of currency is in German format, which means that "." (decimal point) and "," (coma) play the opposite roles. In German format, "," is the decimal point where as in English it is ".".

LocEngineer

Try this:

=A1 & " " & TEXT(B1;"###.###€")

Edit: Interesting effect! 0 does not get interpreted as "0". Therefore little amendment, German notation (English would be If with , delimiter of course):

=A1 & " " & WENN(TEXT(B1;"###.###")="";"0 €";TEXT(B1;"###.###€"))

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Copy/Paste only cells with values

From Dev

In Excel, how can you copy/paste multiple cells into the editing of another cell?

From Dev

How to 'copy' and 'paste special' 'values only' if the cells are highlight orange (or any colour) by combining these two scripts

From Dev

Excel to copy / paste some cells from one sheet to another but with a twist

From Dev

Copy and Paste Specific Cells from one worksheet to another

From Dev

Copy and paste a range of cells from one sheet to another then clear data from orignal cells

From Dev

Excel vba macro to copy cells and paste in another

From Dev

Copy Specific cells and paste in another sheet

From Dev

Copy specific cells from one row and paste into different cells on another worksheet

From Dev

Choose between two cells to copy and paste

From Dev

Choose between two cells to copy and paste

From Dev

Macro to copy and paste as values only the active cells

From Dev

Copy cells and paste by overwriting cells in another sheet based on a criteria

From Dev

Excel VBA macro - find the cell location from which cells in two columns match the row and column in another workbook then paste a value

From Dev

Copy/Paste cells & value

From Dev

How to retrieve 2 values from different cells and format them in a different cell?

From Dev

Copy cells to another cell when filled with color

From Dev

Automatically copy a cells colour to another cell

From Dev

How to copy/paste table cells in a TableView

From Dev

using - in cell data while format cells is Number

From Dev

vba to copy specific cells when values from two columns match

From Dev

Sum cells from a workbook and paste in another workbook

From Dev

Excel - VBA Loop - Copy formulas from cells, paste into cells, then copy paste special

From Dev

Copy the value from a cell in a worksheet into a range of cells

From Dev

How to Copy and Paste Rows starting from a specific cell in another sheet

From Dev

Copy cells from different columns on same row, and paste to different columns on same row on another sheet

From Dev

VBscript: Copy/Paste data from one workbook to next blank row (specific cells) of another workbook

From Dev

How to split values from one cell to multiple cells using bash

From Dev

How to get different time values from one cell and but it in different cells?

Related Related

  1. 1

    Copy/Paste only cells with values

  2. 2

    In Excel, how can you copy/paste multiple cells into the editing of another cell?

  3. 3

    How to 'copy' and 'paste special' 'values only' if the cells are highlight orange (or any colour) by combining these two scripts

  4. 4

    Excel to copy / paste some cells from one sheet to another but with a twist

  5. 5

    Copy and Paste Specific Cells from one worksheet to another

  6. 6

    Copy and paste a range of cells from one sheet to another then clear data from orignal cells

  7. 7

    Excel vba macro to copy cells and paste in another

  8. 8

    Copy Specific cells and paste in another sheet

  9. 9

    Copy specific cells from one row and paste into different cells on another worksheet

  10. 10

    Choose between two cells to copy and paste

  11. 11

    Choose between two cells to copy and paste

  12. 12

    Macro to copy and paste as values only the active cells

  13. 13

    Copy cells and paste by overwriting cells in another sheet based on a criteria

  14. 14

    Excel VBA macro - find the cell location from which cells in two columns match the row and column in another workbook then paste a value

  15. 15

    Copy/Paste cells & value

  16. 16

    How to retrieve 2 values from different cells and format them in a different cell?

  17. 17

    Copy cells to another cell when filled with color

  18. 18

    Automatically copy a cells colour to another cell

  19. 19

    How to copy/paste table cells in a TableView

  20. 20

    using - in cell data while format cells is Number

  21. 21

    vba to copy specific cells when values from two columns match

  22. 22

    Sum cells from a workbook and paste in another workbook

  23. 23

    Excel - VBA Loop - Copy formulas from cells, paste into cells, then copy paste special

  24. 24

    Copy the value from a cell in a worksheet into a range of cells

  25. 25

    How to Copy and Paste Rows starting from a specific cell in another sheet

  26. 26

    Copy cells from different columns on same row, and paste to different columns on same row on another sheet

  27. 27

    VBscript: Copy/Paste data from one workbook to next blank row (specific cells) of another workbook

  28. 28

    How to split values from one cell to multiple cells using bash

  29. 29

    How to get different time values from one cell and but it in different cells?

HotTag

Archive