Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CraigSA
 
Posts: n/a
Default sumif from activeX control

I am trying to set up spreadsheet where I can select a range, by date, from a
couple DTPicker activeX controls, and then sum up some values corresponding
to that date range selected in the DTPicker's from a list of dates from
another spreadsheet. I am struggling at the moment though with the SUMIF
function. As far as I can tell the SUMIF only accepts actual values in the
criteria entry, so I can't even read a value from a cell. I want to say
sumif(*my listed dates*,*my selected date range in DTPicker's*, *range of
corresponding values to sum*) but whenever I try to say, for instance E12 in
the criteria, it doesn't read cell e12's value, it takes the value as the
letter e. I'm not sure how to read value's from the DTPicker but I haven't
even tried yet because I can't even read in a cell's value.

Please help
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
chillihawk
 
Posts: n/a
Default sumif from activeX control

=sumif("A1:A5",""&E12,"B1:B5")

is the answer to the first part

however if you are attempting to set an upper and lower bound on the
date range (ie 2 sumif criteria) you'll need something like the
following array formula:

{=sum(if(A1:A5E12,1,0)*if(A1:A5<E11,1,0)*B1:B5)}

HTH

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
sumif with activex input CraigSA Excel Discussion (Misc queries) 0 March 30th 06 03:28 PM
Excel 2000 ActiveX Control Problem Andy Excel Discussion (Misc queries) 1 March 23rd 06 08:16 PM
Tab to an ActiveX control? Karin Excel Discussion (Misc queries) 0 July 6th 05 05:08 AM
How do I disable the ActiveX Control prompt? Keith Excel Discussion (Misc queries) 0 May 18th 05 09:58 AM
Can I control linked cell property value in a copied ActiveX contr Beechbeard Excel Discussion (Misc queries) 0 May 4th 05 10:30 PM


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