LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
robot
 
Posts: n/a
Default SumIf formula with complex criteria

I want to sum over cells in column A based on a criterion on column B. The
criteria is kind of complicated, and a custom function [Fn(S as string) as
byte] has been written for the purpose. The formula

= IF(Fn(B2)0, A2,0)

works fine, so I tried the array formula

{=SUM(IF(Fn(B2:B5)0, A2:A5,0))}

but that doesnˇ¦t work. (returning a #VALUE! error)

Suggestions are most welcome!


 
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 with Mutiple Ranges & Criteria PokerZan Excel Discussion (Misc queries) 5 August 4th 05 10:31 PM
SumIf Criteria Matches Debbie Dies Excel Worksheet Functions 4 August 1st 05 11:18 PM
how can I use shading as criteria in a formula? PattiB Excel Worksheet Functions 0 June 8th 05 07:41 PM
Formula Does Not Omit Criteria Joe Gieder Excel Worksheet Functions 2 December 17th 04 04:17 PM
Formula to determine a future date based on criteria David Excel Worksheet Functions 2 December 15th 04 07:51 PM


All times are GMT +1. The time now is 08:44 AM.

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"