Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Extract a List | Excel Discussion (Misc queries) | |||
Extract a list from master list | Excel Worksheet Functions | |||
Extract list of units based on error criteria to new list | Excel Worksheet Functions | |||
Extract list of units based on error criteria to new list | Excel Worksheet Functions | |||
extract data from a random list & place in another ordered list | Excel Discussion (Misc queries) |