Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Show a row of data in a different sheet if cell isn't null

If a cell is not blank or null (meaning I have used some of those items), I
need the row of data to copy to the next worksheet. How can I do this?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Show a row of data in a different sheet if cell isn't null

One quick way to set it up dynamically

Assume source data in Sheet1, cols A to C, where the key col = col A
In another sheet,
In A2: =IF(Sheet1!A2<"",ROW(),"")
Leave A1 blank. This is the criteria col, monitoring your line:
If a cell is not blank or null ...


In B2:
=IF(ROWS($1:1)COUNT($A:$A),"",INDEX(Sheet1!A:A,SM ALL($A:$A,ROWS($1:1))))
Copy B2 to D2. Select A2:D2, copy down to cover the max expected extent of
source data in Sheet1, say down to D100. Minimize col A. Cols B to D will
return the desired results from Sheet1, all neatly packed at the top.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:21,000 Files:370 Subscribers:66
xdemechanik
---
"OCDinNC" wrote:
If a cell is not blank or null (meaning I have used some of those items), I
need the row of data to copy to the next worksheet. How can I do this?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Show a row of data in a different sheet if cell isn't null

Thanks so much for your reply, Max. I am pretty new to using Excel, and am
trying to fit your example to my situation. The range I need to filter is H,
so cells H2 through H145 on sheet 2 need to be scanned for the presence of a
number, and if there is one, then copy the rows containing numbers to sheet
1. Can you elaborate? Thanks!

"Max" wrote:

One quick way to set it up dynamically

Assume source data in Sheet1, cols A to C, where the key col = col A
In another sheet,
In A2: =IF(Sheet1!A2<"",ROW(),"")
Leave A1 blank. This is the criteria col, monitoring your line:
If a cell is not blank or null ...


In B2:
=IF(ROWS($1:1)COUNT($A:$A),"",INDEX(Sheet1!A:A,SM ALL($A:$A,ROWS($1:1))))
Copy B2 to D2. Select A2:D2, copy down to cover the max expected extent of
source data in Sheet1, say down to D100. Minimize col A. Cols B to D will
return the desired results from Sheet1, all neatly packed at the top.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:21,000 Files:370 Subscribers:66
xdemechanik
---
"OCDinNC" wrote:
If a cell is not blank or null (meaning I have used some of those items), I
need the row of data to copy to the next worksheet. How can I do this?

  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Show a row of data in a different sheet if cell isn't null

Data in Sheet1 is assumed in row 2 down
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:21,000 Files:370 Subscribers:66
xdemechanik
---

  #5   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Show a row of data in a different sheet if cell isn't null

So your source data is in Sheet2, cols A to col H (say)
with key col = col H, data from row 2 down

Assume you want to scan col H for the number: 77 (say) - the criteria

In Sheet1,
In A2: =IF(Sheet2!H2=77,ROW(),"")
Leave A1 blank

In B2:
=IF(ROWS($1:1)COUNT($A:$A),"",INDEX(Sheet2!A:A,SM ALL($A:$A,ROWS($1:1))))
Copy B2 to I2. Select A2:I2, copy down to cover the max expected extent of
source data in Sheet2, say down to I200? Minimize col A. Cols B to I will
return the desired results from Sheet2, all neatly packed at the top.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:21,000 Files:370 Subscribers:66
xdemechanik
---
"OCDinNC" wrote:
Thanks so much for your reply, Max. I am pretty new to using Excel, and am
trying to fit your example to my situation. The range I need to filter is H,
so cells H2 through H145 on sheet 2 need to be scanned for the presence of a
number, and if there is one, then copy the rows containing numbers to sheet
1. Can you elaborate? Thanks!




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Show a row of data in a different sheet if cell isn't null

Thanks, I'll try that.

"Max" wrote:

Data in Sheet1 is assumed in row 2 down
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:21,000 Files:370 Subscribers:66
xdemechanik
---

  #7   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Show a row of data in a different sheet if cell isn't null

I've responded further with the amended steps to suit your specific set-ups
in the other branch. You might wish to try that instead. It should work fine.
Pl press the YES buttons below from where you're reading this.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:21,000 Files:370 Subscribers:66
xdemechanik
---
"OCDinNC" wrote:
Thanks, I'll try that.


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
If Date Null Show Nothing Ardy Excel Worksheet Functions 7 January 25th 07 06:12 PM
Show Null As %0 Ardy Excel Worksheet Functions 6 January 22nd 07 07:01 AM
How to show data from other sheet depend on value?? Malka Excel Worksheet Functions 3 February 27th 06 08:51 AM
cell value based on null/not null in another cell spence Excel Worksheet Functions 1 February 18th 06 11:49 PM
Referencing cell in another sheet yields null? [email protected] Excel Worksheet Functions 4 November 18th 05 01:11 AM


All times are GMT +1. The time now is 08:45 AM.

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"