Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default Copy rows if greater than zero

I have a sheet where the user selects options up to 12 times, this
automatically generates a part number for each position.
On another sheet I use a list of possible part numbers with COUNTIF
functions in adjacent cells. This works fine, it puts "0" in every adjacent
cell then counts how many times each part number is chosen. (about 40 part
numbers)

What I want to do now is pull out any part numbers that don't have a zero
next to them and put them all in another list on another sheet with the
quantities next to them?Part nos. A77:A128
Quantity (COUNTIF) B77:B128

Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Copy rows if greater than zero

Assume source data as specified is in Sheet1

In Sheet2,
Put in A1:
=IF(Sheet1!B770,ROW(),"")

Put in B1:
=IF(ROW()COUNT($A:$A),"",INDEX(Sheet1!A$77:A$128, SMALL($A:$A,ROW())))
Copy B1 to C1. Select A1:C1, fill down to C52 to cover the extent of source
data in Sheet1. Hide away col A. Cols B and C will return the required
results all neatly bunched at the top. Results will be dynamic to changes in
Sheet1.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"AndyB" wrote:
I have a sheet where the user selects options up to 12 times, this
automatically generates a part number for each position.
On another sheet I use a list of possible part numbers with COUNTIF
functions in adjacent cells. This works fine, it puts "0" in every adjacent
cell then counts how many times each part number is chosen. (about 40 part
numbers)

What I want to do now is pull out any part numbers that don't have a zero
next to them and put them all in another list on another sheet with the
quantities next to them?Part nos. A77:A128
Quantity (COUNTIF) B77:B128

Thanks in advance

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default Copy rows if greater than zero

Works prefectly, Thanks.

"Max" wrote:

Assume source data as specified is in Sheet1

In Sheet2,
Put in A1:
=IF(Sheet1!B770,ROW(),"")

Put in B1:
=IF(ROW()COUNT($A:$A),"",INDEX(Sheet1!A$77:A$128, SMALL($A:$A,ROW())))
Copy B1 to C1. Select A1:C1, fill down to C52 to cover the extent of source
data in Sheet1. Hide away col A. Cols B and C will return the required
results all neatly bunched at the top. Results will be dynamic to changes in
Sheet1.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"AndyB" wrote:
I have a sheet where the user selects options up to 12 times, this
automatically generates a part number for each position.
On another sheet I use a list of possible part numbers with COUNTIF
functions in adjacent cells. This works fine, it puts "0" in every adjacent
cell then counts how many times each part number is chosen. (about 40 part
numbers)

What I want to do now is pull out any part numbers that don't have a zero
next to them and put them all in another list on another sheet with the
quantities next to them?Part nos. A77:A128
Quantity (COUNTIF) B77:B128

Thanks in advance

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Copy rows if greater than zero

welcome, AndyB
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"AndyB" wrote in message
...
Works prefectly, 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
count filtered rows based on condition greater than forty PLVKC Excel Worksheet Functions 1 September 4th 07 07:56 AM
Copy rows of data (eliminating blank rows) from fixed layout Sweepea Excel Discussion (Misc queries) 1 March 13th 07 11:05 PM
sort data rows "greater than or equal" criteria in another cell HV man Excel Worksheet Functions 0 March 26th 06 11:50 PM
Charting when number of rows are greater than 65536 Hari Charts and Charting in Excel 3 January 31st 06 06:12 PM
Worksheet that only shows rows with quantity greater than zero trigger Excel Discussion (Misc queries) 0 January 11th 06 05:24 PM


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