LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
avi avi is offline
external usenet poster
 
Posts: 195
Default Sumproduct with double quoted strings

Hello,
I have procedure that reads strings from a file
LayerC = Chr(34) & Layer & Chr(34)

Then Evaluate a count
CountIn = _
xlApp.Evaluate("SUMPRODUCT((" & _
MainDataRange.Address & "=" & TvahC & ")*(" &
RangeLayers.Address & "=" & LayerC & "))")

The problem is if the variable Layer contains double quotes (For
Example N"Y) , the new variable LayerC is now "N"Y", which the 2nd
statement does not accept

Any idea?
Thanks
Avi
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sumproduct with multiple criteria and both numbers and strings Babymech Excel Discussion (Misc queries) 3 November 6th 09 06:38 PM
Double quotes bracketing text strings that include commas ExcelStudent Excel Discussion (Misc queries) 1 August 2nd 07 12:48 PM
recognizing double digit numbers in strings DB Excel Programming 4 March 2nd 07 05:24 PM
SUMPRODUCT- double unary vs. * Epinn Excel Worksheet Functions 2 November 4th 06 04:13 AM
Sumproduct and finding partial strings Jeff Excel Programming 4 January 6th 05 04:29 PM


All times are GMT +1. The time now is 02:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"