There's ALWAYS alternatives,
but without more information, I have no way of knowing which would be 
preferable.
 
To ME, 500 is a "small" number (I deal with 10,000+)

Paul
-----------------------------------------
“Do all the good you can,
By all the means you can,
In all the ways you can,
In all the places you can,
At all the times you can,
To all the people you can,
As long as ever you can.” - John Wesley
-----------------------------------------


>________________________________
> From: santhosh qatester <santhosh.qat...@gmail.com>
>To: excel-macros@googlegroups.com 
>Sent: Tuesday, February 25, 2014 11:13 AM
>Subject: Re: $$Excel-Macros$$ Alternate for concatenate in excel
>  
>
>
>Hi,
>
>Any alternate of it. we have nearly 500 rows like this to divide it. 
>
>
>
>
>
>
>On Tue, Feb 25, 2014 at 8:33 PM, Paul Schreiner <schreiner_p...@att.net> wrote:
>
>Ahh...  
>>I've done something similar.
>>Using an Excel sheet to "generate" volumes of SQL code...
>> 
>> 
>>What it's actually implying is to break your statement into multiple cells: 
>>
>>B1 = "select column1,coumn2 from table1 t,table2 t2 "
>>C1 = " where t1.condition1=t2.condition1,t2.condition2=t2.condition2"
>>D1 = " and date =(TEXT(TODAY()-1,"YYYYMMDD")) as x, 
>>E1 = "..."
>>F1 = "..."
>>
>>
>>Then, in A1 you can use:
>>=B1 & C1 & D1 & E1 & F1
>>
>>you DO have to make sure you have spaces where appropriate, so I sometimes 
>>use:
>>=B1 & " " & C1 & " " & D1 & " " & E1 & " " & F1
>>
>>the "displayed value" of A1 can exceed your 255 character limit. 
>>
>>
>>Paul
>>-----------------------------------------
>>“Do all the good you can,
>>By all the means you can,
>>In all the ways you can,
>>In all the places you can,
>>At all the times you can,
>>To all the people you can,
>>As long as ever you can.” - John Wesley
>>----------------------------------------- 
>>
>>
>> From: santhosh qatester <santhosh.qat...@gmail.com>
>>>To: excel-macros@googlegroups.com 
>>>Sent: Tuesday, February 25, 2014 9:40 AM
>>>Subject: Re: $$Excel-Macros$$ Alternate for concatenate in excel
>>>  
>>>
>>>
>>>Hi,
>>>
>>> Manually placing the sql query in the cell. Appending the dates to the sql 
>>>query using excel formula. This sql query act as an input to my C# coding 
>>>
>>>
>>>Ex: select column1,coumn2 from table1 t,table2 t2 where 
>>>t1.condition1=t2.condition1,t2.condition2=t2.condition2 and date 
>>>=(TEXT(TODAY()-1,"YYYYMMDD")) as x,(sub query will continue)
>>>
>>>
>>>any alternate to the concatenate the cell values =Concatenate("select 
>>>column1,coumn2 from table1 t,table2 t2 where 
>>>t1.condition1=t2.condition1,t2.condition2=t2.condition2 and date"& 
>>>(TEXT(TODAY()-1,"YYYYMMDD")&"(subquery)")
>>>
>>>
>>>it throws the error message as "Text values in formulas are limited to 255 
>>>characters.To Create text values longer than 255,use the concatenate 
>>>function or the concatenate operator (&)'
>>> 
>>>
>>>
>>>when we use concatenate the 
>>>
>>>
>>>
>>>Thanks,
>>>Santhosh
>>>
>>>
>>>
>>>
>>>
>>>
>>>Thanks,
>>>Santhosh
>>>
>>>
>>>
>>>
>>>On Tue, Feb 25, 2014 at 7:56 PM, Paul Schreiner <schreiner_p...@att.net> 
>>>wrote:
>>>
>>>I'm not sure what you mean by:
>>>> 
>>>>"excel cell has sql query" 
>>>> 
>>>>Are you using VBA to run a SQL query and placing the result in the cell?
>>>>or are you using an "External" source that populates the Excel sheet? 
>>>>
>>>>and..
>>>>
>>>>what is it you're trying to do?
>>>>
>>>>Paul
>>>>-----------------------------------------
>>>>“Do all the good you can,
>>>>By all the means you can,
>>>>In all the ways you can,
>>>>In all the places you can,
>>>>At all the times you can,
>>>>To all the people you can,
>>>>As long
 as ever you can.” - John Wesley
>>>>-----------------------------------------
>>>>
>>>>
>>>> From: santhosh qatester <santhosh.qat...@gmail.com>
>>>>>To: excel-macros@googlegroups.com 
>>>>>Sent: Tuesday, February 25, 2014 6:12 AM
>>>>>Subject: $$Excel-Macros$$ Alternate for concatenate in excel
>>>>> 
>>>>>
>>>>>
>>>>>Hi All,
>>>>>
>>>>> In excel cell has sql query which has more than 255 characters.
>>>>>
>>>>>which has string+date+string when i use concatenate or & symbol it throws 
>>>>>error message
>>>>>
>>>>>can you please let me know there is any alternate for concatenate function 
>>>>>in excel
>>>>>
>>>>>
>>>>> 
>>>>>
-- 
>>>>>Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
>>>>>=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
>>>>>https://www.facebook.com/discussexcel
>>>>> 
>>>>>FORUM RULES
>>>>> 
>>>>>1) Use concise, accurate thread titles. Poor thread titles, like Please 
>>>>>Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice 
>>>>>will not get quick attention or may not be answered.
>>>>>2) Don't post a question in the thread of another member.
>>>>>3) Don't post questions regarding breaking or bypassing any security 
>>>>>measure.
>>>>>4) Acknowledge the responses you receive, good or bad.
>>>>>5) Jobs posting is not allowed.
>>>>>6) Sharing copyrighted material and their links is not allowed.
>>>>> 
>>>>>NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
>>>>>members are not responsible for any loss.
>>>>>--- 
>>>>>You received this message because you are subscribed to the Google Groups 
>>>>>"MS EXCEL AND VBA MACROS" group.
>>>>>
To unsubscribe from this group and stop receiving emails from it, send an email 
to mailto:excel-macros%2bunsubscr...@googlegroups.com.
>>>>>
>>>>>To post to this group, send email to excel-macros@googlegroups.com.
>>>>>Visit this group at http://groups.google.com/group/excel-macros.
>>>>>For more options, visit https://groups.google.com/groups/opt_out.
>>>>>
>>>>>
>>>>>    
>>>>-- 
>>>>Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
>>>>=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
>>>>https://www.facebook.com/discussexcel
>>>> 
>>>>FORUM RULES
>>>> 
>>>>1) Use concise, accurate thread titles. Poor thread titles, like Please 
>>>>Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice 
>>>>will not get quick attention or may not be answered.
>>>>2) Don't post a question in the thread of another member.
>>>>3) Don't post questions regarding breaking or bypassing any security 
>>>>measure.
>>>>4) Acknowledge the responses you receive, good or bad.
>>>>5) Jobs posting is not allowed.
>>>>6) Sharing copyrighted material and their links is not allowed.
>>>> 
>>>>NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
>>>>members are not responsible for any loss.
>>>>--- 
>>>>You received this message because you are subscribed to the Google Groups 
>>>>"MS EXCEL AND VBA MACROS" group.
>>>>
To unsubscribe from this group and stop receiving emails from it, send an email 
to mailto:excel-macros%2bunsubscr...@googlegroups.com.
>>>>
>>>>To post to this group, send email to excel-macros@googlegroups.com.
>>>>Visit this group at http://groups.google.com/group/excel-macros.
>>>>For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>
>>>-- 
>>>Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
>>>=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
>>>https://www.facebook.com/discussexcel
>>> 
>>>FORUM RULES
>>> 
>>>1) Use concise, accurate thread titles. Poor thread titles, like Please 
>>>Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will 
>>>not get quick attention or may not be answered.
>>>2) Don't post a question in the thread of another member.
>>>3) Don't post questions regarding breaking or bypassing any security measure.
>>>4) Acknowledge the responses you receive, good or bad.
>>>5) Jobs posting is not allowed.
>>>6) Sharing copyrighted material and their links is not allowed.
>>> 
>>>NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
>>>members are not responsible for any loss.
>>>--- 
>>>You received this message because you are subscribed to the Google Groups 
>>>"MS EXCEL AND VBA MACROS" group.
>>>To unsubscribe from this group and stop receiving emails from it, send an 
>>>email to mailto:excel-macros%2bunsubscr...@googlegroups.com.
>>>To post to this group, send email to excel-macros@googlegroups.com.
>>>Visit this group at http://groups.google.com/group/excel-macros.
>>>For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>    
>>-- 
>>Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
>>=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
>>https://www.facebook.com/discussexcel
>> 
>>FORUM RULES
>> 
>>1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
>>Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not 
>>get quick attention or may not be answered.
>>2) Don't post a question in the thread of another member.
>>3) Don't post questions regarding breaking or bypassing any security measure.
>>4) Acknowledge the responses you receive, good or bad.
>>5) Jobs posting is not allowed.
>>6) Sharing copyrighted material and their links is not allowed.
>> 
>>NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
>>members are not responsible for any loss.
>>--- 
>>You received this message because you are subscribed to the Google Groups "MS 
>>EXCEL AND VBA MACROS" group.
>>To unsubscribe from this group and stop receiving emails from it, send an 
>>email to mailto:excel-macros%2bunsubscr...@googlegroups.com.
>>To post to this group, send email to excel-macros@googlegroups.com.
>>Visit this group at http://groups.google.com/group/excel-macros.
>>For more options, visit https://groups.google.com/groups/opt_out.
>>
>
-- 
>Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
>=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
>https://www.facebook.com/discussexcel
> 
>FORUM RULES
> 
>1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
>Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
>quick attention or may not be answered.
>2) Don't post a question in the thread of another member.
>3) Don't post questions regarding breaking or bypassing any security measure.
>4) Acknowledge the responses you receive, good or bad.
>5) Jobs posting is not allowed.
>6) Sharing copyrighted material and their links is not allowed.
> 
>NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
>members are not responsible for any loss.
>--- 
>You received this message because you are subscribed to the Google Groups "MS 
>EXCEL AND VBA MACROS" group.
>To unsubscribe from this group and stop receiving emails from it, send an 
>email to excel-macros+unsubscr...@googlegroups.com.
>To post to this group, send email to excel-macros@googlegroups.com.
>Visit this group at http://groups.google.com/group/excel-macros.
>For more options, visit https://groups.google.com/groups/opt_out.
>
>
>    

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to