Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Array Formulas + VB Code

I want to write VB code for implementing Array formulas.am new to VB
coding

Here is the array formula I have successfully written in excel

{=SUM(IF('Sheet1'!$B$7:$B$4978="Red",IF('Sheet1'!$ K$7:$K
$4978="Accept",'Sheet1'!$G$7:$G$4978,0),0))}

Can someone help me out with the VB equivalent code.

Thanks!!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Array Formulas + VB Code

Activesheet.Evaluate("SUM(IF('Sheet1'!$B$7:$B$4978 =""Red"",IF('Sheet1'!$K$7:$K$4978=""Accept"",'Shee t1'!$G$7:$G$4978,0),0))")

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



wrote in message
ups.com...
I want to write VB code for implementing Array formulas.am new to VB
coding

Here is the array formula I have successfully written in excel

{=SUM(IF('Sheet1'!$B$7:$B$4978="Red",IF('Sheet1'!$ K$7:$K
$4978="Accept",'Sheet1'!$G$7:$G$4978,0),0))}

Can someone help me out with the VB equivalent code.

Thanks!!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Array Formulas + VB Code

On Mar 20, 3:03 pm, "Bob Phillips" wrote:
Activesheet.Evaluate("SUM(IF('Sheet1'!$B$7:$B$4978 =""Red"",IF('Sheet1'!$K$7:$K$4978=""Accept"",'Shee t1'!$G$7:$G$4978,0),0))")

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

wrote in message

ups.com...

I want to write VB code for implementing Array formulas.am new to VB
coding


Here is the array formula I have successfully written in excel


{=SUM(IF('Sheet1'!$B$7:$B$4978="Red",IF('Sheet1'!$ K$7:$K
$4978="Accept",'Sheet1'!$G$7:$G$4978,0),0))}


Can someone help me out with the VB equivalent code.


Thanks!!


Thanks Bob!! it worked

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
Convert Array Formulas to Regular Formulas Domenick Excel Worksheet Functions 6 August 17th 15 09:16 PM
Convert Array Formulas to Regular Formulas minyeh Excel Worksheet Functions 0 March 21st 10 05:55 AM
Array formulas Lynda Excel Worksheet Functions 3 June 25th 09 03:06 PM
Array Formulas [email protected] Excel Worksheet Functions 1 July 20th 07 01:24 PM
Array formulas andreas Excel Worksheet Functions 2 June 1st 05 01:45 PM


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