ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do i add a cell value in a sentence without using 2 cells? (https://www.excelbanter.com/excel-worksheet-functions/91073-how-do-i-add-cell-value-sentence-without-using-2-cells.html)

Jared

How do i add a cell value in a sentence without using 2 cells?
 
If i want to write a sentence but with a cell value inside, how do i input it
so the value of the cell is shown and not the reference?

example: the days you worked today are ($A$6)

i need it to be in one cell and not two seperate cells

JE McGimpsey

How do i add a cell value in a sentence without using 2 cells?
 
One way:

="the days you worked today are " & $A$6

In article ,
Jared wrote:

If i want to write a sentence but with a cell value inside, how do i input it
so the value of the cell is shown and not the reference?

example: the days you worked today are ($A$6)

i need it to be in one cell and not two seperate cells


Gary''s Student

How do i add a cell value in a sentence without using 2 cells?
 
="the days you worked today are(" & $A$6 & ")"

--
Gary's Student


"Jared" wrote:

If i want to write a sentence but with a cell value inside, how do i input it
so the value of the cell is shown and not the reference?

example: the days you worked today are ($A$6)

i need it to be in one cell and not two seperate cells


Jared

How do i add a cell value in a sentence without using 2 cells?
 
Great,
Now how do i do the same but in a formula?

entering a cell value in a formula?

='C:\Documents and Settings\Owner\Desktop\[April.xls]Month'!H7

but instead of "april.xls" i want to put $B$2

"Gary''s Student" wrote:

="the days you worked today are(" & $A$6 & ")"

--
Gary's Student


"Jared" wrote:

If i want to write a sentence but with a cell value inside, how do i input it
so the value of the cell is shown and not the reference?

example: the days you worked today are ($A$6)

i need it to be in one cell and not two seperate cells


Gary''s Student

How do i add a cell value in a sentence without using 2 cells?
 
Whenever you want to construct a reference by splicing together bits of
strings use INDIRECT():

=INDIRECT("[" & $B$2 & "]Month!H7")
assuming that B2 contains the text April.xls

REMEMBER: This will not work if the target workbook is not open.


--
Gary's Student


"Jared" wrote:

Great,
Now how do i do the same but in a formula?

entering a cell value in a formula?

='C:\Documents and Settings\Owner\Desktop\[April.xls]Month'!H7

but instead of "april.xls" i want to put $B$2

"Gary''s Student" wrote:

="the days you worked today are(" & $A$6 & ")"

--
Gary's Student


"Jared" wrote:

If i want to write a sentence but with a cell value inside, how do i input it
so the value of the cell is shown and not the reference?

example: the days you worked today are ($A$6)

i need it to be in one cell and not two seperate cells



All times are GMT +1. The time now is 12:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com