Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Highest Value from Excel Formula

I have a formula that goes from B1:B1000-

=IF(Template!$C17="","","EXP_"&'Start Here'!$D$2+ROW(A2))

The formula returns a value if there is a value in another spreadsheet. If
not, it is null. My problem is trying to find the last calculated value that
is not null and populating the value from the formula on another spreadsheet
called "Results".
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Highest Value from Excel Formula


If you are using VBA try something like this


With Sheets("Template")

Set MyRange = .Range("C17:C1016")
Set c = MyRange.Find(what:="*", _
searchdirection:=xlPrevious, _
LookIn:=xlValues, lookat:=xlPart)
If Not c Is Nothing Then
Results = "EXP_" & Sheets("Start Here").Range("D" & c.Row)
End If
End With



The find method using the wildcard * and the searchdirection xlPrevious
will do what you want.


--
joel
------------------------------------------------------------------------
joel's Profile: http://www.thecodecage.com/forumz/member.php?u=229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=197450

http://www.thecodecage.com/forumz

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
Is there an Excel formula to show the highest letter in a row? DaniMa Excel Worksheet Functions 9 February 16th 09 08:24 AM
Is there an Excel formula to show the highest letter in a row? DaniMa Excel Discussion (Misc queries) 1 February 10th 09 12:22 AM
Is there an Excel formula to show the highest letter in a row? DaniMa Excel Discussion (Misc queries) 1 February 9th 09 09:26 AM
2 rows, highest No in row 1, then highest number in row 2 relating to that column, possible duplicates John Excel Worksheet Functions 3 August 11th 06 04:34 AM
Excel Formula - to calculate highest number from a set of numbers Emily Excel Worksheet Functions 1 June 27th 06 06:49 AM


All times are GMT +1. The time now is 12:56 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"