LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RiotLoadTime
 
Posts: n/a
Default DCOUNT for non-contiguous columns


I have a database with multiple-cell headers (descriptors like "1 hour"
and "2 hour") in the first row, under which I have cell-specific
headers (like "blood pressure," "temperature") in the second row, and
data in the rest of the rows. I need to count all the numbers in
A3:A200 where the corresponding B, C, D, and K values (i.e. the B,C,D,
and K values in the same row) are equal to zero.

It'd be nice if I could define my database for the function(i.e.
"DCOUNT(database,field, criteria)") to be A2:K200, have the field=1,
and make a criteria array with the first row being the headers for
B,C,D, and K, and the second row being 0. Unfortunately, I can't do
that because G2 actually has the same heading as K2 (they're both blood
pressure, they're just at two different times, as shown by them being
under A1 and B1 respectively).

Is there any way for me to make the database have just columns A, B, C,
D, and K without rearranging them or modifying their headers? Is there
anyway to truncate two databases to somehow combine A:D and K just for
the function?

Thanks,
RiotLoadTime


--
RiotLoadTime
------------------------------------------------------------------------
RiotLoadTime's Profile: http://www.excelforum.com/member.php...o&userid=35956
View this thread: http://www.excelforum.com/showthread...hreadid=557470

 
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
How do I make excel hide columns when it says cannot move objects Dale Excel Discussion (Misc queries) 0 November 10th 05 02:44 PM
How do I sort the data in 8 columns by two of the columns? Sorting Excel Worksheet Functions 1 October 25th 05 03:57 PM
How to swap rows and columns? [email protected] Excel Discussion (Misc queries) 5 September 21st 05 08:07 AM
Hiding columns and custom views problem Bettergains Excel Discussion (Misc queries) 2 April 12th 05 11:48 PM
Removing Near-Duplicate Rows, Leaving Those w/Most Data in Specific Columns foofoo Excel Discussion (Misc queries) 1 April 2nd 05 12:02 AM


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