![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 18
|
What formula will return the the first value to the right?
For example: A1=empty cell, B1=3, C1=empty cell, D1=0, E1=5, F1=empty cell. What does the formula need to be in G1 to return the value of the first cell to the left than contains 0 or a value, or in this case 5 (E1) |
|
|
|
|
|
#2 |
|
New Member
Join Date: Mar 2002
Posts: 18
|
Please excuse my typo. The question should be: "What forumla will return the first value to the LEFT?"
|
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
|
|
|
|
|
|
|
#4 |
|
New Member
Join Date: Mar 2002
Posts: 18
|
Thanks.
Plug in your formula and got the results I needed. Now I just need to spend some time figuring out the formula so I can understand it. |
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Feb 2002
Location: Brisbane, Down Under
Posts: 533
|
Aladin, this is the second time you've posted a similar reply and not being a mathematician what is 9.9(al 14 of them)+307 represent?
SamS |
|
|
|
|
|
#6 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
9.99999999999999E+307 is the biggest positive number that Excel knows. When MATCH (with match type 1) fails to find for a numeric lookup value a matching numeric value in a row or column range to which it's applied, it returns the row (or column) number of the last cell in the range which houses a numeric value. Given this behavior of MATCH, we feed it that huge number as lookup value for which, failing to find a mathing value, the function is bound to return the row/column number of the last cell of numeric type. Thus, the formula exploits the fact that there will be practically no numeric value as big as 9.9...E+307 in the range tested. Aladin [ This Message was edited by: Aladin Akyurek on 2002-03-13 23:12 ] |
|
|
|
|
|
|
#7 | |
|
Board Regular
Join Date: Feb 2002
Posts: 390
|
Quote:
BTW Aladin: your knowledge is admirable!! |
|
|
|
|
|
|
#8 | ||
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
Aladin |
||
|
|
|
|
|
#9 | |
|
Board Regular
Join Date: Feb 2002
Posts: 390
|
Quote:
Thank you for the rectification. |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|