Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 171
Default extract non zero valus from a list.

I am looking for a funtion that retrives names from col (a:a) whose
corresponding values in Col(b:b) are not zero or blank.Please don't suggest
filtering,or sorting.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 141
Default extract non zero valus from a list.

On Jun 1, 9:08*pm, TUNGANA KURMA RAJU
wrote:
I am looking for a funtion that retrives names from col (a:a) whose
corresponding values in Col(b:b) are not zero or blank.Please don't suggest
filtering,or sorting.


Not sure where you want to retrieve them to, so I wrote this code to
retrieve them to the immediate window, you can edit the code to fit
your needs. Or reply back and I can help make the adjustment.

Sub test()
Dim cell As Range
For Each cell In Range("A:A")
If cell < "" And cell.Offset(0, 1).Value < 0 Then
Debug.Print cell
Next cell
End Sub
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 171
Default extract non zero valus from a list.

Retieve the names in col C:c

"GTVT06" wrote:

On Jun 1, 9:08 pm, TUNGANA KURMA RAJU
wrote:
I am looking for a funtion that retrives names from col (a:a) whose
corresponding values in Col(b:b) are not zero or blank.Please don't suggest
filtering,or sorting.


Not sure where you want to retrieve them to, so I wrote this code to
retrieve them to the immediate window, you can edit the code to fit
your needs. Or reply back and I can help make the adjustment.

Sub test()
Dim cell As Range
For Each cell In Range("A:A")
If cell < "" And cell.Offset(0, 1).Value < 0 Then
Debug.Print cell
Next cell
End Sub

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 171
Default extract non zero valus from a list.

very long back, I came across Row,Rows function to get this results,I need a
function.

"GTVT06" wrote:

On Jun 1, 9:08 pm, TUNGANA KURMA RAJU
wrote:
I am looking for a funtion that retrives names from col (a:a) whose
corresponding values in Col(b:b) are not zero or blank.Please don't suggest
filtering,or sorting.


Not sure where you want to retrieve them to, so I wrote this code to
retrieve them to the immediate window, you can edit the code to fit
your needs. Or reply back and I can help make the adjustment.

Sub test()
Dim cell As Range
For Each cell In Range("A:A")
If cell < "" And cell.Offset(0, 1).Value < 0 Then
Debug.Print cell
Next cell
End Sub

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 141
Default extract non zero valus from a list.

This will retrieve name from column C

Sub test()
Dim cell As Range
For Each cell In Range("A:A")
If cell < "" And cell.Offset(0, 1).Value < 0 Then
Debug.Print cell.Offset(0, 1).Value
Next cell
End Sub
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
Extract a List Adams SC[_2_] Excel Discussion (Misc queries) 0 May 16th 08 09:26 PM
Extract a list from master list js Excel Worksheet Functions 4 September 28th 07 06:15 AM
Extract list of units based on error criteria to new list Sheila Excel Worksheet Functions 14 August 9th 07 03:57 AM
Extract list of units based on error criteria to new list Sheila Excel Worksheet Functions 0 August 9th 07 01:50 AM
extract data from a random list & place in another ordered list sean8690 Excel Discussion (Misc queries) 1 January 2nd 07 06:06 PM


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