Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Location: Richmond, VA
Posts: 2
Question How do I choose first value greater than 0?

I have a worksheet with data by month in columns. I want to look through the data consecutively and find the first value greater than 0 in each row.

I can do this with an imbedded if statement, but I did not know until recently that you can only have 8 IF's. So it takes two if formulas, the first with 8 IFs the second with five, one to compare to the result of the first IF formula and the rest to check the final 4 months of data.

I tried to figure out a way to use the CHOOSE option to make this work but had no success there.

Is there a better way to do this?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 510
Default How do I choose first value greater than 0?

Hi,

Take a look at Tom's solution in following post,
http://groups.google.com/group/micro...91947f4f49f236

and adjust to your needs ...

HTH
Cheers
Carim

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default How do I choose first value greater than 0?

Hi!

Try this:

Entered as an array using the key combination of CTRL,SHIFT,ENTER (not just
ENTER):

=INDEX(B1:M1,MATCH(TRUE,B1:M10,0))

Biff

"jagruc" wrote in message
...

I have a worksheet with data by month in columns. I want to look
through the data consecutively and find the first value greater than 0
in each row.

I can do this with an imbedded if statement, but I did not know until
recently that you can only have 8 IF's. So it takes two if formulas,
the first with 8 IFs the second with five, one to compare to the result
of the first IF formula and the rest to check the final 4 months of
data.

I tried to figure out a way to use the CHOOSE option to make this work
but had no success there.

Is there a better way to do this?




--
jagruc



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
Matching Values from an Array Mal Excel Worksheet Functions 2 January 4th 06 10:06 AM
I want the greater number of 2 cells to show in a separate cell cfiser Excel Discussion (Misc queries) 2 November 16th 05 10:32 PM
I want the greater number of 2 cells to show in a separate cel cfiser Excel Discussion (Misc queries) 0 November 16th 05 10:03 PM
I want the greater number of 2 cells to show in a separate cell Ron Coderre Excel Discussion (Misc queries) 1 November 16th 05 09:22 PM
if greater then 99 then 1 if greater then 199 then two N.R. Excel Worksheet Functions 2 June 23rd 05 06:14 PM


All times are GMT +1. The time now is 06:45 AM.

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"