LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Variable used in a =SUMIF() function?

Hi,

How do I replace the "A40" parameter with the nLastrow varable below?

nLastrow = 100

objExcel.ActiveSheet.Range("D20").Formula = "=SUMIF
(A4:A40,""'5734' "",B4:B40)"

I've been trying many things with double-double quotes but nothing
works.

Thanks.
 
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
Sumif based on two variable Memphus01 Excel Discussion (Misc queries) 4 December 10th 08 04:36 AM
SUMIF With Variable Consecutive Days Peanut Excel Worksheet Functions 6 May 10th 07 08:02 PM
SumIf for Variable Conditions JP Excel Worksheet Functions 6 November 13th 06 10:31 AM
how to use a variable for the criteria in a sumif function? Dick B. Excel Worksheet Functions 5 May 1st 06 12:55 PM
Sumif with variable target Brisbane Rob Excel Discussion (Misc queries) 2 March 23rd 06 11:20 AM


All times are GMT +1. The time now is 10:29 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"