Prev Previous Post   Next Post Next
  #2   Report Post  
Max
 
Posts: n/a
Default

Try:

=SUMPRODUCT((Database!$I$2:$I$10="BD")*(Database!$ K$2:$K$10="Yes"))

Adapt the ranges to suit, but note that we can't use entire col references
in SUMPRODUCT

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"andyb7901" wrote in
message ...

I need to be able to add up all the data in two rows but only if they
follow two conditions. I have tried to use a COUNTIF but it will only
allow one condition.


Code:
--------------------
=COUNTIF(Database!I:I,"BD", AND(Database!K:K,"Yes"))
--------------------


the database isnt actually a database, rather a tab that I have one my
spreadsheet. Has anyone any suggestions that could heklp me out?? I
need to say how many records are there with this row = BD and this row
= Yes.

Thanks In advance.


--
andyb7901
------------------------------------------------------------------------
andyb7901's Profile:

http://www.excelforum.com/member.php...o&userid=25551
View this thread: http://www.excelforum.com/showthread...hreadid=389824



 
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
Confused about arrays and ranges in functions Llurker Excel Worksheet Functions 0 July 7th 05 05:44 AM
Default User Defined Functions - How? flycast Excel Discussion (Misc queries) 4 May 26th 05 04:26 AM
PASTE DOWN FUNCTIONS jackle Excel Worksheet Functions 0 May 25th 05 02:10 PM
3 questions about automated c++ com add-in worksheet functions gert Excel Worksheet Functions 0 March 10th 05 09:57 AM
# of Functions per cell SUB-ZERO Excel Worksheet Functions 3 January 23rd 05 10:35 PM


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