LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Tim Tim is offline
external usenet poster
 
Posts: 408
Default sumproduct, multiple if, some same cell, determine number of rows

Here is what I am trying to do:
A B C
7000000 GL-2 $100
7126150 AR-PY $200
7135250 GL-2 $300
7137150 GL-2 $400
7139150 GL-2 $500
7145975 GL-2 $600
First...I need to check if numbers in A column are greater than 7000000 and
less than 7140999. Next identify only numbers that end in 150. Next check
column B and identify on the GL-2 cells...finally add the values in column C.
So the answer here should be $900.
=SUMPRODUCT((A5:A107000000)*(A5:A10<7140999)*(1*R IGHT(A5:A10,3)=150)*(B5:B10="GL-2"),C5:C10)
The above works (thanks Ashish), BUT...I don't know how many rows for sure I
need to scan down)...so A10, may be A945 or A466. How can I tell it how many
rows?

 
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
Count number of rows < Sumproduct micro1000 Excel Worksheet Functions 8 January 19th 09 10:01 AM
How to determine the cell contain number only? Eric Excel Discussion (Misc queries) 1 July 2nd 07 09:28 AM
Determine number of rows meeting a condition Snapps Excel Discussion (Misc queries) 4 November 2nd 06 08:40 PM
How do I determine the number of cell formats in this workbook tucsonmissiledude Excel Discussion (Misc queries) 2 October 28th 05 05:59 AM
How to determine which rows contain slected cells in a multiple c. Paul Excel Worksheet Functions 2 April 5th 05 05:07 PM


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