AllExperts > Excel 
Search      
Excel
Volunteer
Answers to thousands of questions
 Home · More Excel Questions · Answer Library  · Encyclopedia ·
More Excel Answers
Question Library

Ask a question about Excel
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Bill Hermanson
Expertise
Please tell me WHICH EXCEL VERSION you are using!

DO NOT ASK ME me about Macros or VBA.

Please read my "instructions to questioners" in my full profile [use View Profile, at right], to help you write a question that I can understand, without having to ask you what you mean.

If your question contains any of the words THIS, IT, THAT, THOSE, or THEY, I likely won't understand IT. Please rewrite!

My Expertise: I am an expert at data manipulation, the use of incredibly complex logical statements, databases, combining tables and extracting data, all the LOGICAL, LOOKUP & REFERENCE functions, dynamic ranges, creating professional appearing spreadsheets, complex functions, integrated charts and visual displays, user interfaces.... I can make Excel do anything!

But PLEASE... NO MACRO or VBA QUESTIONS!

Experience
25 years development of complex spreadsheets for personal and professional use. I've developed hundreds (or thousands!) of spreadsheets in all fields, from complex engineering calculations to game scoring, financial analysis, scheduling, cost-of-doing-business, and analysis of home energy use. I even used Excel to assist in design of the flight computers presently on board the Hubble Space Telescope (1984-1991)

Education/Credentials
BSEE Electrical Engineering, CU Boulder CO USA
Use of spreadsheets since 1982
Boulder Valley School District, Life Long Learning, Instructor
Owner & Operator of Excel Expert, LLC

 
   

You are here:  Experts > Computing/Technology > Microsoft Software > Excel > Finding a value in a column

Excel - Finding a value in a column


Expert: Bill Hermanson - 11/6/2009

Question
Hello there.
I have a column of 366 IF statements designed to give me different hyperlinks on different dates in Excel 2007. I have set these up so that only the one that matches the current date is displayed, the rest return a zero. My problem is that I need one cell to update each day with the non-zero value. I've been tryind to find a way of finding the non-zero value in the column, then displaying it as-is in another cell. This seems a very simple task but it won't work for me unless I'm using numbers and use sumif.
Hope that makes sense, thanks for your time.

Answer
Andy,

  Take a look at MATCH and INDEX.  MATCH() can look down the column and return the row number (relative to the top of the column, not the absolute row number of the sheet) which contains the first number larger than 0.  

  If the non-zero value isn't a number, but is TEXT instead, you can add a column of =Cell<>0 functions, which will give TRUE or FALSE as a result. This equation may look funny but it will detect the sole non-zero value with a TRUE result; all the rest will be FALSE. Then use MATCH to find the sole TRUE (which is equal to 1). Finally, and INDEX can retrieve the actual sole non-zero value, by feeding the MATCH result in for the ROW parameter of the INDEX function.

  Hope this helps and is clear enough to get you going.

    >>> Bill

Add to this Answer   Ask a Question


 
About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.