Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ben Ben is offline
external usenet poster
 
Posts: 509
Default return the first value in a column

What would be the most efficient way of returning the value of the first
NON-ZERO value in a column.

THANK YOU
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default return the first value in a column

=INDEX(A1:A20,MIN(IF(A1:A20<"",ROW(A1:A20))))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Ben" wrote in message
...
What would be the most efficient way of returning the value of the first
NON-ZERO value in a column.

THANK YOU



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default return the first value in a column


Ben เขียน:
What would be the most efficient way of returning the value of the first
NON-ZERO value in a column.

THANK YOU


Try this:

=INDEX(B2:B19,MATCH(1,(B2:B190)+0,0))

Ctrl+Shif+Enter

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default return the first value in a column


Ben เขียน:
What would be the most efficient way of returning the value of the first
NON-ZERO value in a column.

THANK YOU


If A2:A11 contain your data.

B2

=INDEX(A2:A11,MATCH(1,(A2:A110)+0,0))

Ctrl+Shift+Enter

Hope this helps.

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
LOOKUP and return the column heading for IF/THEN return for False NN Excel Discussion (Misc queries) 1 October 6th 06 11:24 AM
Return the column David Excel Worksheet Functions 2 August 8th 06 09:27 PM
Lookup in one column, and return value from another column fdebelo Excel Worksheet Functions 2 January 8th 06 01:55 PM
Search one column and return value from next column shwekhaw Excel Discussion (Misc queries) 2 May 3rd 05 09:52 AM
How to return value from last column w/value? bimmerman Excel Worksheet Functions 2 November 23rd 04 12:19 AM


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