Go Back   TechArena Community > Software > Windows Software
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , ,

Sponsored Links


Formula to find next value in row in MS Excel

Windows Software


Reply
 
Thread Tools Search this Thread
  #1  
Old 12-06-2009
Member
 
Join Date: Jan 2009
Posts: 66
Formula to find next value in row in MS Excel

Sponsored Links
Hi,
I have windows XP installed on my desktop with MS Office 2007. I m looking for a formula or macro to find next value in row in MS Excel. Anyone have any idea?

All suggestions are welcome.

Reply With Quote
  #2  
Old 12-06-2009
Sam.D's Avatar
Member
 
Join Date: Jan 2008
Posts: 3,740
Re: Formula to find next value in row in MS Excel

Try this:

Sub test()
Dim rngFound As Range
Dim rngToSearch As Range
Dim strFirstAddress As String

Set rngToSearch = Sheets("Sheet1").Columns("A")
Set rngFound = rngToSearch.Find(What:="Account Category:*", _
LookAt:=xlWhole, _
LookIn:=xlValues, _
MatchCase:=False)
If rngFound Is Nothing Then
MsgBox "Sorry... Not Found"
Else
strFirstAddress = rngFound.Address
Do
rngFound.Select
MsgBox rngFound.Value & " found at " & rngFound.Address
Set rngFound = rngToSearch.FindNext(rngFound)
Loop Until strFirstAddress = rngFound.Address
End If
End Sub
Reply With Quote
  #3  
Old 12-06-2009
Eric B's Avatar
Member
 
Join Date: Apr 2008
Posts: 4,640
Re: Formula to find next value in row in MS Excel

You can do it by selecting the data on you worksheet. Follow these steps:
  • Highlight the cells in column
  • Select Edit
  • Then Go to Special -> Blank Cells
  • Type "=" and press the up arrow key
  • Press Ctrl+Enter
Reply With Quote
Reply

  TechArena Community > Software > Windows Software


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Formula to find next value in row in MS Excel"
Thread Thread Starter Forum Replies Last Post
Need formula help for MS Excel RlyPlyPanda MS Office Support 1 08-05-2012 01:46 PM
What is the formula to find Relative Percent Difference in Microsoft Excel LuniA MS Office Support 2 23-02-2012 01:56 PM
How to create formula to find relative percent difference in Excel Aarti C Windows Software 1 06-01-2012 07:38 PM
Which Excel formula can help to find 4 digit combination using the numbers 0 to 9 Regan Windows Software 6 31-12-2011 04:42 PM
Excel Formula Scott2580 MS Office Support 2 15-02-2011 01:21 PM


All times are GMT +5.5. The time now is 01:32 PM.