![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Microsoft Office support MS Office support forum |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Sep 2008
Posts: 1
OS: xp sp2
|
Need to search for the first "numbers" in a range in Excel 2003
I need to figure out a formula that I can use in Excel 2003 that will let me look through a row and give me the data in the first cell that is not blank. In other words, if I am in cell M36, I want to search L36-A36 until it finds some data that has been entered, and then put that number that it finds in Cell M36. It needs to search right to left until it comes across a cell that is not null.
Any help that can be provided is appreciated. Thank you for your help! Jason |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Registered User
Join Date: May 2008
Location: Baltimore, Maryland
Posts: 160
OS: Windows XP SP3
|
Re: Need to search for the first "numbers" in a range in Excel 2003
Here's a user-defined function that can do what you described.
Code:
Function find_data() As Variant
Application.Volatile True
Dim idx As Long
find_data = "**NO DATA FOUND**"
For idx = Application.Caller.Column - 1 To 1 Step -1
If Not IsEmpty(ActiveSheet.Cells(Application.Caller.Row, idx)) Then
find_data = ActiveSheet.Cells(Application.Caller.Row, idx).Value
Exit For
End If
Next idx
End Function
Last edited by David M58; 09-11-2008 at 05:15 PM. |
|
|
|
![]() |
| Thread Tools | |
|
|