#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 51
Default sumproduct

Hi,

I have formula =SUMPRODUCT(--(B3=Sheet2!A:A),--(D3=Sheet2!B:B))

how should use same formula in using VBA like
appllication.worksheetfunction.sumproduct......

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default sumproduct

x = WorksheetFunction.SumProduct(--(Range("B3") =
Worksheets("Sheet2").Range("A:A")), --(Range("D3") =
Worksheets("Sheet2").Range("B:B")))

I suppose you use Excel2007, because there are whole column references (A:A)
in your formula.

Regards,
Stefi

ezt *rta:

Hi,

I have formula =SUMPRODUCT(--(B3=Sheet2!A:A),--(D3=Sheet2!B:B))

how should use same formula in using VBA like
appllication.worksheetfunction.sumproduct......


Reply
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 robot New Users to Excel 7 August 23rd 08 05:32 AM
Conditional SUMPRODUCT or SUMPRODUCT with Filters Ted M H Excel Worksheet Functions 4 August 14th 08 07:50 PM
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM
Sumproduct #value! wal50 Excel Worksheet Functions 8 May 8th 06 09:14 PM
sumproduct ? Ian Bartlett Excel Worksheet Functions 4 May 8th 06 03:24 PM


All times are GMT +1. The time now is 03:23 AM.

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

About Us

"It's about Microsoft Excel"