ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   syntax question (https://www.excelbanter.com/excel-worksheet-functions/68039-syntax-question.html)

Giselle

syntax question
 
Hi XLers

This code fragment works well, resulting in a cell value of, for example,
Teacher

Worksheets("PrintRpt").Range("C1").Formula =
"=INDEX(Job_List!J:J,MATCH(A4,Job_List!A:A,0)) "


But, I want the cell value to be Job Title: Teacher

I know this should be simple, but I can't get the syntax to work?

TQ for any help
Giselle




Dave Peterson

syntax question
 
Like:

Worksheets("PrintRpt").Range("C1").Formula _
= "=""Job title: "" & INDEX(Job_List!J:J,MATCH(A4,Job_List!A:A,0))"

You have to double up the quotes within the strings.

Giselle wrote:

Hi XLers

This code fragment works well, resulting in a cell value of, for example,
Teacher

Worksheets("PrintRpt").Range("C1").Formula =
"=INDEX(Job_List!J:J,MATCH(A4,Job_List!A:A,0)) "

But, I want the cell value to be Job Title: Teacher

I know this should be simple, but I can't get the syntax to work?

TQ for any help
Giselle


--

Dave Peterson

Giselle

syntax question
 
=" =""Why couldn't "" & ""I"" & ""think of that!"" "
Giselle

"Dave Peterson" wrote in message
...
Like:

Worksheets("PrintRpt").Range("C1").Formula _
= "=""Job title: "" & INDEX(Job_List!J:J,MATCH(A4,Job_List!A:A,0))"

You have to double up the quotes within the strings.

Giselle wrote:

Hi XLers

This code fragment works well, resulting in a cell value of, for example,
Teacher

Worksheets("PrintRpt").Range("C1").Formula =
"=INDEX(Job_List!J:J,MATCH(A4,Job_List!A:A,0)) "

But, I want the cell value to be Job Title: Teacher

I know this should be simple, but I can't get the syntax to work?

TQ for any help
Giselle


--

Dave Peterson




paul

syntax question
 
because ="=""Giselle "" &"" excel knowledge < Daves excel knowledge "" "
--
paul
remove nospam for email addy!



"Giselle" wrote:

=" =""Why couldn't "" & ""I"" & ""think of that!"" "
Giselle

"Dave Peterson" wrote in message
...
Like:

Worksheets("PrintRpt").Range("C1").Formula _
= "=""Job title: "" & INDEX(Job_List!J:J,MATCH(A4,Job_List!A:A,0))"

You have to double up the quotes within the strings.

Giselle wrote:

Hi XLers

This code fragment works well, resulting in a cell value of, for example,
Teacher

Worksheets("PrintRpt").Range("C1").Formula =
"=INDEX(Job_List!J:J,MATCH(A4,Job_List!A:A,0)) "

But, I want the cell value to be Job Title: Teacher

I know this should be simple, but I can't get the syntax to work?

TQ for any help
Giselle


--

Dave Peterson





Dave Peterson

syntax question
 
Gawd, those double quotes are confusing!

I sometimes type the formula in a cell, then copy and paste into the code--and
remember to double them up after I paste.

paul wrote:

because ="=""Giselle "" &"" excel knowledge < Daves excel knowledge "" "
--
paul
remove nospam for email addy!

"Giselle" wrote:

=" =""Why couldn't "" & ""I"" & ""think of that!"" "
Giselle

"Dave Peterson" wrote in message
...
Like:

Worksheets("PrintRpt").Range("C1").Formula _
= "=""Job title: "" & INDEX(Job_List!J:J,MATCH(A4,Job_List!A:A,0))"

You have to double up the quotes within the strings.

Giselle wrote:

Hi XLers

This code fragment works well, resulting in a cell value of, for example,
Teacher

Worksheets("PrintRpt").Range("C1").Formula =
"=INDEX(Job_List!J:J,MATCH(A4,Job_List!A:A,0)) "

But, I want the cell value to be Job Title: Teacher

I know this should be simple, but I can't get the syntax to work?

TQ for any help
Giselle

--

Dave Peterson





--

Dave Peterson


All times are GMT +1. The time now is 06:21 AM.

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