Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to reference value of Excel cell in a sentence written in a different cell? See attached image

Excel picture of the problem

See attached picture. Basically, is there a way to reference B2, i.e. the value 1592 in the comment/sentence written in D2? I don’t want to manually write 1592 in D2, but instead would like to reference B2. I of course know how to reference a value from different cell in an empty cell. But when there is text in the cell, I’m lost.
Thank you for any kind of help.

I tried the ordinary way to type =B2 in D2 but it didn’t want to reference the cell B2 🙁

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

String concatenation:

You can combine text with =...&... or the =CONCAT(..., ).

For example in this you could have either

="Purcahsed 2022-12-30: remaining value is "&B2&" out of 1791"

or

=CONCAT("Purcahsed 2022-12-30: remaining value is ", B2, " out of 1791")

If you wanted to make it more dynamic you could put the purchased date and initial value in their own columns, say E/F, and

=CONCAT("Purcahsed ", E2, ": remaining value is ", B2, " out of ", F2)
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading