Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 605
Default Last value in row

JMB,

Thank you so much. I have started my own thread "Interpreting comma where an optional argument is" because I don't want to "hijack" this thread. Hope GMW won't mind the extra details. I guess after all the formula I suggested for him/her works well.

First value/stock price

{=INDEX(1:1,MATCH(TRUE,(ISNUMBER(1:1)),0))} array formula i.e. ctrl+shift+enter

Epinn

"JMB" wrote in message ...
If you have a vertical array like this in A1:A4

1
2
3
4

=INDEX(A1:A4, 3)
=INDEX(A1:A4, 3, 1)

return the same element. The column number is optional because there is
only one column. Same thing for data containing only one row.

1 2 3 4

=INDEX(A1:D1, 3)
=INDEX(A1:D1, 1, 3)

except the row number is optional.

Optional means the argument does not have to be supplied. Putting in a
comma means you have supplied the argument, but it is empty (or blank).

Consider the If statement
=IF(A1=3, "A1 is 3") returns FALSE (for a false condition)
=IF(A1=3, "A1 is 3",) returns 0 (for a false condition)

or
=IF(A1=3,,) will return 0 for both True and False conditions.

or
=IF(A1=3,) will return 0 for True condition and FALSE for false condition.

Because for IF statements, the true conditional is required, but it can be
empty (or blank). The false conditional is optional and will return FALSE if
omitted. If it is empty (or blank as the help file says) it will return 0.
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



All times are GMT +1. The time now is 04:28 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"