#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 39
Default ID Values

The Data
A B C
1 50 80 0
2 0 0 100
3 75 0 90
4 60 70 80
5 45 50 0

The three columns in each row can have 1, 2 or 3 non-zero numbers (but will
always have at least one). The numbers/zeros can be in any column. I need
column D to show the number if there is only one non-zero, the lowest if
there are two, and the middle number if there are three non zero. In the
example D1 and down would be 50, 100, 75, 70 and 45

Thanks
WAL50
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 87
Default ID Values

Try:
=IF(3-COUNTIF(A1:C1,0)=1,MAX(A1:C1),MEDIAN(A1:C1))

Scott

wal50 wrote:
The Data
A B C
1 50 80 0
2 0 0 100
3 75 0 90
4 60 70 80
5 45 50 0

The three columns in each row can have 1, 2 or 3 non-zero numbers (but will
always have at least one). The numbers/zeros can be in any column. I need
column D to show the number if there is only one non-zero, the lowest if
there are two, and the middle number if there are three non zero. In the
example D1 and down would be 50, 100, 75, 70 and 45

Thanks
WAL50


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default ID Values

=MIN(IF(A1:C10,A1:C1))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"wal50" wrote in message
...
The Data
A B C
1 50 80 0
2 0 0 100
3 75 0 90
4 60 70 80
5 45 50 0

The three columns in each row can have 1, 2 or 3 non-zero numbers (but

will
always have at least one). The numbers/zeros can be in any column. I

need
column D to show the number if there is only one non-zero, the lowest if
there are two, and the middle number if there are three non zero. In the
example D1 and down would be 50, 100, 75, 70 and 45

Thanks
WAL50



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default ID Values

Forget that please, missed the middle bit.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Bob Phillips" wrote in message
...
=MIN(IF(A1:C10,A1:C1))

which is an array formula, it should be committed with Ctrl-Shift-Enter,

not
just Enter.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"wal50" wrote in message
...
The Data
A B C
1 50 80 0
2 0 0 100
3 75 0 90
4 60 70 80
5 45 50 0

The three columns in each row can have 1, 2 or 3 non-zero numbers (but

will
always have at least one). The numbers/zeros can be in any column. I

need
column D to show the number if there is only one non-zero, the lowest if
there are two, and the middle number if there are three non zero. In

the
example D1 and down would be 50, 100, 75, 70 and 45

Thanks
WAL50





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default ID Values

Hi wal,
do you have negative nymbers?

happy holidays




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 39
Default ID Values

no negatives

"driller" wrote:

Hi wal,
do you have negative nymbers?

happy holidays


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 39
Default ID Values

Thanks Scott. Works great.

"Scott" wrote:

Try:
=IF(3-COUNTIF(A1:C1,0)=1,MAX(A1:C1),MEDIAN(A1:C1))

Scott

wal50 wrote:
The Data
A B C
1 50 80 0
2 0 0 100
3 75 0 90
4 60 70 80
5 45 50 0

The three columns in each row can have 1, 2 or 3 non-zero numbers (but will
always have at least one). The numbers/zeros can be in any column. I need
column D to show the number if there is only one non-zero, the lowest if
there are two, and the middle number if there are three non zero. In the
example D1 and down would be 50, 100, 75, 70 and 45

Thanks
WAL50



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
Using two values to report multiple values LJ Excel Discussion (Misc queries) 0 November 16th 06 05:19 PM
Return across Row Numeric Values Matching EXACT Month & Year for Criteria Sam via OfficeKB.com Excel Worksheet Functions 8 October 22nd 06 11:30 PM
List of values office guy10 Excel Discussion (Misc queries) 2 September 22nd 06 07:28 PM
Referencing a specific number to more general values in a table. AJL Excel Worksheet Functions 0 September 19th 06 05:11 PM
Keeping a cell value constant trhoughout a list of values borikua05 Excel Worksheet Functions 2 December 3rd 05 03:03 PM


All times are GMT +1. The time now is 05:46 PM.

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"