Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default MAX/MIN in range potantially including text

Howdy,

I'm creating a spreadsheet for use by a track team. What I have set up for
them is a separate sheet for each athlete for multiple events across many
meets, having the events (100m, 200m, 100m hurdles, etc) down the leftmost
column, and each meet across the page.

On the rightmost column, I have a function that is tracking the times the
athlete placed for each event, and picking out the best time/distance per
event, which is simplistic enough:

=IF(B12+D12+F12+H12+J12+L12+N12=0,"-",MIN(B12,D12,F12,H12,J12,L12,N12))

if (the range of events) is empty, a simple dash is shown to note that the
athlete did not compete in that event, while if there is an entry, the
lowest/largest number is picked out as their best time or best distance. (The
code skips every other column as beside each time is the place that they came
in their race aka 1st of 4, 5th of 10 etc)

I've run into a problem, however, in that there may be two other
possibilities. There may be times where the athlete did not qualify for the
event, or was disqualified, in which case the coach needs to enter DNQ or
DISQ or something similar to show what occurred.

This throws the function above out of whack, giving a #VALUE error.

I tried using an if function to determine if there were non-numerical values
in the range, but couldn't get the function to work. Is there a way for the
MIN or MAX functions to ignore these non-numeric entries without producing
the error?

I'm using excel 2003, as that may possibly matter.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default MAX/MIN in range potantially including text

MIN and/or MAX ignore text entries so the error is coming from this portion:

=IF(B12+D12+F12+H12+J12+L12+N12=0

Use SUM or COUNT as they will also ignore text entries:

=IF(SUM(B12,D12,F12,H12,J12,L12,N12)=0,"-",MIN(B12,D12,F12,H12,J12,L12,N12))

=IF(COUNT(B12,D12,F12,H12,J12,L12,N12)=0,"-",MIN(B12,D12,F12,H12,J12,L12,N12))

Biff

"TrackStats" wrote in message
...
Howdy,

I'm creating a spreadsheet for use by a track team. What I have set up for
them is a separate sheet for each athlete for multiple events across many
meets, having the events (100m, 200m, 100m hurdles, etc) down the leftmost
column, and each meet across the page.

On the rightmost column, I have a function that is tracking the times the
athlete placed for each event, and picking out the best time/distance per
event, which is simplistic enough:

=IF(B12+D12+F12+H12+J12+L12+N12=0,"-",MIN(B12,D12,F12,H12,J12,L12,N12))

if (the range of events) is empty, a simple dash is shown to note that the
athlete did not compete in that event, while if there is an entry, the
lowest/largest number is picked out as their best time or best distance.
(The
code skips every other column as beside each time is the place that they
came
in their race aka 1st of 4, 5th of 10 etc)

I've run into a problem, however, in that there may be two other
possibilities. There may be times where the athlete did not qualify for
the
event, or was disqualified, in which case the coach needs to enter DNQ or
DISQ or something similar to show what occurred.

This throws the function above out of whack, giving a #VALUE error.

I tried using an if function to determine if there were non-numerical
values
in the range, but couldn't get the function to work. Is there a way for
the
MIN or MAX functions to ignore these non-numeric entries without producing
the error?

I'm using excel 2003, as that may possibly matter.

Thanks



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
How to convert a month to a quarter ...... Epinn New Users to Excel 26 May 3rd 23 07:45 PM
Sumproduct issues SteveDB1 Excel Worksheet Functions 25 June 3rd 09 04:58 PM
conditional formula: sum a range if text present in another range NeedAdvice777 Excel Discussion (Misc queries) 10 August 29th 06 04:51 PM
Using text for the range in AVERAGE function [email protected] Excel Worksheet Functions 4 July 8th 06 12:00 PM
Counting Occurrence of Text within Text in Cells in Range. Jeremy N. Excel Worksheet Functions 1 September 8th 05 05:16 AM


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