Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default find the last row with data

I have an Inventorytab called INV1. I dump raw data in there. Some months
it will contain just 4,000 lines of data or up to 51,000 lines of data. My
second tab is a Calculator tab and it looks at data in the INV1 tab and does
a summary.

=COUNT(IF(Inv1!$A$2:$A$65536=A3,IF(Inv1!$C$2:$C$65 536=B3,IF(Inv1!$E$2:$E$65536=C3,0)))) ....(this is an array)

Is there a way of putting something in the above formula to look at just the
rows with data?

The way I have my formula now means excel looks at row 2 to 65536 even
though a lot of rows are blank

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default find the last row with data

You can create a dynamic range.

Goto InsertNameDefine
Name: rng
Refers to:

=OFFSET(Inv1!$A$2:$E$2,,,COUNTA(Inv1!$A$2:$A$65536 ))

Then, your formula becomes (still an array):

=COUNT(IF(INDEX(rng,,1)=A3,IF(INDEX(rng,,3)=B3,IF( INDEX(rng,,5)=C3,0))))

Or (still an array):

=SUM((INDEX(rng,,1)=A3)*(INDEX(rng,,3)=B3)*(INDEX( rng,,5)=C3))


--
Biff
Microsoft Excel MVP


"Poppy" wrote in message
...
I have an Inventorytab called INV1. I dump raw data in there. Some months
it will contain just 4,000 lines of data or up to 51,000 lines of data.
My
second tab is a Calculator tab and it looks at data in the INV1 tab and
does
a summary.

=COUNT(IF(Inv1!$A$2:$A$65536=A3,IF(Inv1!$C$2:$C$65 536=B3,IF(Inv1!$E$2:$E$65536=C3,0))))
....(this is an array)

Is there a way of putting something in the above formula to look at just
the
rows with data?

The way I have my formula now means excel looks at row 2 to 65536 even
though a lot of rows are blank

Thanks



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
HOw do i find and sort out data repeats for specific data set JRDePaul Excel Discussion (Misc queries) 0 February 26th 07 11:55 PM
Find formatting doesn't work: "Excel cannot find data" Kasama Excel Discussion (Misc queries) 1 August 18th 06 01:40 PM
Despite data existing in Excel 2002 spreadsheet Find doesn't find AnnieB Excel Discussion (Misc queries) 1 June 16th 06 02:15 AM
The match and lookup functions can find literal data but not the same data referenced from a cell Jeff Melvaine Excel Discussion (Misc queries) 3 April 30th 05 01:29 PM
FIND DATA WITHIN DATA (V-OR-H LOOKUP/FIND/MATCH?) Jaladino Excel Worksheet Functions 0 February 22nd 05 11:22 PM


All times are GMT +1. The time now is 10:03 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"