We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

Oh Good, Another Excel Query

In a cell in excel can I have text AND a reference to another cell, ie

If the contents of cell A1 were 15, then in cell d5 i might have

"The contents of cell A1 are =(a1)"

which would show up in the cell d5 as

The contents of cell A1 are 15



Thanks in advance

Comments

  • Try something like this:

    =CONCATENATE("The contents of cell ", CELL("address",A1), " are = ", CELL("content",A1))

    Look up help on the CELL command, it's got a few different uses
  • jghal
    jghal Posts: 129 Forumite
    Thanks Ringo_24601

    Looked up the CONCATENATE function and have got it to do what I want.

    A slight adjustment required though as one of the cell contents is a date formatted as dd/mm/yyyy, but CONCATENATEing (is that a word :) ) removes the formatting and the date is entered in the new cell as a general number

    Any ideas to get the date in the correct format
  • Use the TEXT function to format the date:

    =CONCATENATE("Contents of A1 = ",TEXT(A1,"dd/mm/yyyy"))
  • Sure... try this:

    =CONCATENATE("The contents of cell ", CELL("address",A1), " are = ", TEXT(A1,"dd/mm/yyyy") )

    The word is concatenating :)
  • jghal
    jghal Posts: 129 Forumite
    Absolutely superb

    Many thanks guys

    :beer:
  • You can also shorten it to

    ="The contents of cell A1 are " & TEXT(A40,"dd/mm/yy")

    as an & replaces the need to know how to spell concatenate
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 351.7K Banking & Borrowing
  • 253.4K Reduce Debt & Boost Income
  • 454K Spending & Discounts
  • 244.7K Work, Benefits & Business
  • 600.1K Mortgages, Homes & Bills
  • 177.3K Life & Family
  • 258.4K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.2K Discuss & Feedback
  • 37.6K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.