Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
my W/sheet data is;
Col A ---------- Col B-------------Col C ---------------Col D raju -------------- 1234-----------------5678-----------------90 david------------- 098-------------------765-------------------432 raju-------------- 32----------------------76------------------- james------------567--------------------uyt-----------------980 david---------------67-------------------567----------------- I need a code -- match 'raju' from Column A and find which cell in Col D is empty against 'raju' -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...mming/200904/1 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
try this,
cell address will be shown. Sub match_it() Dim i As Integer Rng = Cells(Rows.Count, "A").End(xlUp).Row For i = 1 To Rng If Cells(i, "A") = "raju" And Cells(i, "D") = "" Then MsgBox Cells(i, "D").Address End If Next End Sub On Apr 2, 2:51*pm, "tkraju via OfficeKB.com" <u16627@uwe wrote: my W/sheet data is; Col A * ---------- Col B-------------Col C ---------------Col D raju -------------- 1234-----------------5678-----------------90 david------------- 098-------------------765-------------------432 raju-------------- 32----------------------76------------------- james------------567--------------------uyt-----------------980 david---------------67-------------------567----------------- I need a code -- match 'raju' from Column A *and find which cell in Col D is empty against 'raju' -- Message posted via OfficeKB.comhttp://www.officekb.com/Uwe/Forums.aspx/excel-programming/200904/1 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you madhu.
"muddan madhu" wrote: try this, cell address will be shown. Sub match_it() Dim i As Integer Rng = Cells(Rows.Count, "A").End(xlUp).Row For i = 1 To Rng If Cells(i, "A") = "raju" And Cells(i, "D") = "" Then MsgBox Cells(i, "D").Address End If Next End Sub On Apr 2, 2:51 pm, "tkraju via OfficeKB.com" <u16627@uwe wrote: my W/sheet data is; Col A ---------- Col B-------------Col C ---------------Col D raju -------------- 1234-----------------5678-----------------90 david------------- 098-------------------765-------------------432 raju-------------- 32----------------------76------------------- james------------567--------------------uyt-----------------980 david---------------67-------------------567----------------- I need a code -- match 'raju' from Column A and find which cell in Col D is empty against 'raju' -- Message posted via OfficeKB.comhttp://www.officekb.com/Uwe/Forums.aspx/excel-programming/200904/1 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You dont need a macro to find this. Use this formula in col E
=IF(AND(A1="raju",D1=""),"BLANK","") -- If this post helps click Yes --------------- Jacob Skaria "tkraju via OfficeKB.com" wrote: my W/sheet data is; Col A ---------- Col B-------------Col C ---------------Col D raju -------------- 1234-----------------5678-----------------90 david------------- 098-------------------765-------------------432 raju-------------- 32----------------------76------------------- james------------567--------------------uyt-----------------980 david---------------67-------------------567----------------- I need a code -- match 'raju' from Column A and find which cell in Col D is empty against 'raju' -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...mming/200904/1 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find first Empty Cell in a row | Excel Programming | |||
find empty cells in a column then append row that empty cell is in | Excel Programming | |||
Find Empty Cell in Row | Excel Programming | |||
Find 1st Empty Cell: How to? | Excel Programming | |||
Find Empty Cell | Excel Programming |