Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
taxmom
 
Posts: n/a
Default Which function to use?

Hi Everyone,

I'm sure this will be simple for you. However, I'm stuck.

I have a column d9:d2909 that sometimes has figures and sometimes does not.
All I need is a formula to look in this column and if there is no figures
anywere in the column to return "OK" if there is a number anywhere in the
column to return "Change". I cannot reference a total because if there is a
number in this column it will be a positive in one city and a negative in
another city, so the total would be zero.

I tried ifnumber but I could only get it to work for one cell not a range of
cells.

Can you help me?

thanks

  #2   Report Post  
Roger Govier
 
Posts: n/a
Default

One way
=IF(COUNTIF(D9:D2909,"<")0,"Change","OK")

--
Regards

Roger Govier


"taxmom" wrote in message
...
Hi Everyone,

I'm sure this will be simple for you. However, I'm stuck.

I have a column d9:d2909 that sometimes has figures and sometimes does
not.
All I need is a formula to look in this column and if there is no figures
anywere in the column to return "OK" if there is a number anywhere in the
column to return "Change". I cannot reference a total because if there is
a
number in this column it will be a positive in one city and a negative in
another city, so the total would be zero.

I tried ifnumber but I could only get it to work for one cell not a range
of
cells.

Can you help me?

thanks



  #3   Report Post  
taxmom
 
Posts: n/a
Default

Thank you, they both worked great!

You are all so busy but could you explain why countif, max or min and what
does the < do?

I'm trying to understand the logic of these functions. Some I can figure
out others I'm lost.

Thanks again for all of your help.


"Roger Govier" wrote:

One way
=IF(COUNTIF(D9:D2909,"<")0,"Change","OK")

--
Regards

Roger Govier


"taxmom" wrote in message
...
Hi Everyone,

I'm sure this will be simple for you. However, I'm stuck.

I have a column d9:d2909 that sometimes has figures and sometimes does
not.
All I need is a formula to look in this column and if there is no figures
anywere in the column to return "OK" if there is a number anywhere in the
column to return "Change". I cannot reference a total because if there is
a
number in this column it will be a positive in one city and a negative in
another city, so the total would be zero.

I tried ifnumber but I could only get it to work for one cell not a range
of
cells.

Can you help me?

thanks




  #4   Report Post  
Roger Govier
 
Posts: n/a
Default

Hi
Harald and I took two slightly different approaches to the problem, both of
which seem to have achieved the desired result

As you had said that you were looking for "no figures in the column",
I therefore told COUNTIF to look at the column and count the cells which
"<".
< is the symbol for Not Equal to, and with no further reference, the
implication is Not Equal to null therfore empty.
If the result of this countif calculation yielded an answer which is greater
than 0 (0), then obviously the whole column has one or more cells in it
which are not empty and therfore require a change.

Harald used the MAX and MIN functions to achieve a similar outcome.
MAX(range) will return the highest value found in that range and MIN
obviously returns the lowest value found in that range.
With the use of AND(), Harald is testing if the maximum and Minimum values
are both 0, then there is no data in the column hence return the value "ok",
otherwise if the result is false, then there is a need to change.

You mentioned that values for one city could be positive, and another city
could be negative and that is why you could not use the total for the column
as a test. You did not say whether the value for a city could be 0. If that
is the case, then Harald's formula would return you the wrong result.

I hope that this has given you some insight.


--
Regards

Roger Govier


"taxmom" wrote in message
...
Thank you, they both worked great!

You are all so busy but could you explain why countif, max or min and what
does the < do?

I'm trying to understand the logic of these functions. Some I can figure
out others I'm lost.

Thanks again for all of your help.


"Roger Govier" wrote:

One way
=IF(COUNTIF(D9:D2909,"<")0,"Change","OK")

--
Regards

Roger Govier


"taxmom" wrote in message
...
Hi Everyone,

I'm sure this will be simple for you. However, I'm stuck.

I have a column d9:d2909 that sometimes has figures and sometimes does
not.
All I need is a formula to look in this column and if there is no
figures
anywere in the column to return "OK" if there is a number anywhere in
the
column to return "Change". I cannot reference a total because if there
is
a
number in this column it will be a positive in one city and a negative
in
another city, so the total would be zero.

I tried ifnumber but I could only get it to work for one cell not a
range
of
cells.

Can you help me?

thanks






  #5   Report Post  
taxmom
 
Posts: n/a
Default

Thank you, your explanation was very helpful. You have helped shed some
light on the mystery.

Thanks for your help you are an angel ! : )


"Roger Govier" wrote:

Hi
Harald and I took two slightly different approaches to the problem, both of
which seem to have achieved the desired result

As you had said that you were looking for "no figures in the column",
I therefore told COUNTIF to look at the column and count the cells which
"<".
< is the symbol for Not Equal to, and with no further reference, the
implication is Not Equal to null therfore empty.
If the result of this countif calculation yielded an answer which is greater
than 0 (0), then obviously the whole column has one or more cells in it
which are not empty and therfore require a change.

Harald used the MAX and MIN functions to achieve a similar outcome.
MAX(range) will return the highest value found in that range and MIN
obviously returns the lowest value found in that range.
With the use of AND(), Harald is testing if the maximum and Minimum values
are both 0, then there is no data in the column hence return the value "ok",
otherwise if the result is false, then there is a need to change.

You mentioned that values for one city could be positive, and another city
could be negative and that is why you could not use the total for the column
as a test. You did not say whether the value for a city could be 0. If that
is the case, then Harald's formula would return you the wrong result.

I hope that this has given you some insight.


--
Regards

Roger Govier


"taxmom" wrote in message
...
Thank you, they both worked great!

You are all so busy but could you explain why countif, max or min and what
does the < do?

I'm trying to understand the logic of these functions. Some I can figure
out others I'm lost.

Thanks again for all of your help.


"Roger Govier" wrote:

One way
=IF(COUNTIF(D9:D2909,"<")0,"Change","OK")

--
Regards

Roger Govier


"taxmom" wrote in message
...
Hi Everyone,

I'm sure this will be simple for you. However, I'm stuck.

I have a column d9:d2909 that sometimes has figures and sometimes does
not.
All I need is a formula to look in this column and if there is no
figures
anywere in the column to return "OK" if there is a number anywhere in
the
column to return "Change". I cannot reference a total because if there
is
a
number in this column it will be a positive in one city and a negative
in
another city, so the total would be zero.

I tried ifnumber but I could only get it to work for one cell not a
range
of
cells.

Can you help me?

thanks









  #6   Report Post  
Roger Govier
 
Posts: n/a
Default

Thanks for your help you are an angel ! : )
Not many would agree with that!!!
Thanks for the response and glad to have been of some help.

--
Regards

Roger Govier


"taxmom" wrote in message
...
Thank you, your explanation was very helpful. You have helped shed some
light on the mystery.

Thanks for your help you are an angel ! : )


"Roger Govier" wrote:

Hi
Harald and I took two slightly different approaches to the problem, both
of
which seem to have achieved the desired result

As you had said that you were looking for "no figures in the column",
I therefore told COUNTIF to look at the column and count the cells which
"<".
< is the symbol for Not Equal to, and with no further reference, the
implication is Not Equal to null therfore empty.
If the result of this countif calculation yielded an answer which is
greater
than 0 (0), then obviously the whole column has one or more cells in it
which are not empty and therfore require a change.

Harald used the MAX and MIN functions to achieve a similar outcome.
MAX(range) will return the highest value found in that range and MIN
obviously returns the lowest value found in that range.
With the use of AND(), Harald is testing if the maximum and Minimum
values
are both 0, then there is no data in the column hence return the value
"ok",
otherwise if the result is false, then there is a need to change.

You mentioned that values for one city could be positive, and another
city
could be negative and that is why you could not use the total for the
column
as a test. You did not say whether the value for a city could be 0. If
that
is the case, then Harald's formula would return you the wrong result.

I hope that this has given you some insight.


--
Regards

Roger Govier


"taxmom" wrote in message
...
Thank you, they both worked great!

You are all so busy but could you explain why countif, max or min and
what
does the < do?

I'm trying to understand the logic of these functions. Some I can
figure
out others I'm lost.

Thanks again for all of your help.


"Roger Govier" wrote:

One way
=IF(COUNTIF(D9:D2909,"<")0,"Change","OK")

--
Regards

Roger Govier


"taxmom" wrote in message
...
Hi Everyone,

I'm sure this will be simple for you. However, I'm stuck.

I have a column d9:d2909 that sometimes has figures and sometimes
does
not.
All I need is a formula to look in this column and if there is no
figures
anywere in the column to return "OK" if there is a number anywhere
in
the
column to return "Change". I cannot reference a total because if
there
is
a
number in this column it will be a positive in one city and a
negative
in
another city, so the total would be zero.

I tried ifnumber but I could only get it to work for one cell not a
range
of
cells.

Can you help me?

thanks









  #7   Report Post  
Harald Staff
 
Posts: n/a
Default

Hi

Can you test for largest and smallest value and see if both are zero ?
=IF(AND(MAX(D9:D2909)=0,MIN(D9:D2909)=0),"ok","cha nge")

HTH. Best wishes Harald

"taxmom" skrev i melding
...
Hi Everyone,

I'm sure this will be simple for you. However, I'm stuck.

I have a column d9:d2909 that sometimes has figures and sometimes does

not.
All I need is a formula to look in this column and if there is no figures
anywere in the column to return "OK" if there is a number anywhere in the
column to return "Change". I cannot reference a total because if there is

a
number in this column it will be a positive in one city and a negative in
another city, so the total would be zero.

I tried ifnumber but I could only get it to work for one cell not a range

of
cells.

Can you help me?

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
I NEED HELP with the SPELLNUMBER Function vag Excel Worksheet Functions 0 June 21st 05 08:17 AM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM


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