Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default Find empty cell

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 747
Default Find empty cell

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 171
Default Find empty cell

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Find empty cell

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
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
Find first Empty Cell in a row Scott R[_2_] Excel Programming 1 February 11th 09 07:46 PM
find empty cells in a column then append row that empty cell is in vbnewbie Excel Programming 9 January 29th 09 09:27 AM
Find Empty Cell in Row Steve C Excel Programming 2 November 20th 05 01:55 AM
Find 1st Empty Cell: How to? Chris Excel Programming 4 December 2nd 03 09:41 PM
Find Empty Cell Wally Steadman[_3_] Excel Programming 3 November 23rd 03 10:50 PM


All times are GMT +1. The time now is 04:10 PM.

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"