Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default check if any values on row

Hi,

I am trying to have a formula on cell A1 for example that would look
on cells D1:CT1 to see if there are any values different than 0 (in
other words not empty or equal to 0).
If there are any values different than 0, cell A1 would indicate "Row
with data" if none, it would say "Empty row".

Any help would be appreciated.
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 83
Default check if any values on row

On Sun, 28 Feb 2010 12:37:37 -0800 (PST), Norvascom
wrote:

Hi,

I am trying to have a formula on cell A1 for example that would look
on cells D1:CT1 to see if there are any values different than 0 (in
other words not empty or equal to 0).
If there are any values different than 0, cell A1 would indicate "Row
with data" if none, it would say "Empty row".

Any help would be appreciated.
Thanks


Try this formula:

=IF(OR(D1:CT1<0),"Row with data","Empty row")

Note: This is an array formula that should be confirmed with
CTRL+SHIFT+ENTER rather than just ENTER.

Hope this helps / Lars-Åke

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default check if any values on row

On Feb 28, 4:01*pm, Lars-Åke Aspelin wrote:
On Sun, 28 Feb 2010 12:37:37 -0800 (PST), Norvascom

wrote:
Hi,


I am trying to have a formula on cell A1 for example that would look
on cells D1:CT1 to see if there are any values different than 0 (in
other words not empty or equal to 0).
If there are any values different than 0, cell A1 would indicate "Row
with data" if none, it would say "Empty row".


Any help would be appreciated.
Thanks


Try this formula:

=IF(OR(D1:CT1<0),"Row with data","Empty row")

Note: This is an array formula that should be confirmed with
CTRL+SHIFT+ENTER rather than just ENTER.

Hope this helps / Lars-Åke



Thanks it works, but would there be any formula that would calculate
automatically the result without having to press CTRL+SHIFT+ENTER.
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default check if any values on row

Try this:

=IF(SUM(D1:CT1),"Row with data","Empty row")


"Norvascom" wrote:

On Feb 28, 4:01 pm, Lars-Ã…ke Aspelin wrote:
On Sun, 28 Feb 2010 12:37:37 -0800 (PST), Norvascom

wrote:
Hi,


I am trying to have a formula on cell A1 for example that would look
on cells D1:CT1 to see if there are any values different than 0 (in
other words not empty or equal to 0).
If there are any values different than 0, cell A1 would indicate "Row
with data" if none, it would say "Empty row".


Any help would be appreciated.
Thanks


Try this formula:

=IF(OR(D1:CT1<0),"Row with data","Empty row")

Note: This is an array formula that should be confirmed with
CTRL+SHIFT+ENTER rather than just ENTER.

Hope this helps / Lars-Ã…ke



Thanks it works, but would there be any formula that would calculate
automatically the result without having to press CTRL+SHIFT+ENTER.
.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default check if any values on row

On Feb 28, 8:02*pm, Teethless mama
wrote:
Try this:

=IF(SUM(D1:CT1),"Row with data","Empty row")



"Norvascom" wrote:
On Feb 28, 4:01 pm, Lars-Åke Aspelin wrote:
On Sun, 28 Feb 2010 12:37:37 -0800 (PST), Norvascom


wrote:
Hi,


I am trying to have a formula on cell A1 for example that would look
on cells D1:CT1 to see if there are any values different than 0 (in
other words not empty or equal to 0).
If there are any values different than 0, cell A1 would indicate "Row
with data" if none, it would say "Empty row".


Any help would be appreciated.
Thanks


Try this formula:


=IF(OR(D1:CT1<0),"Row with data","Empty row")


Note: This is an array formula that should be confirmed with
CTRL+SHIFT+ENTER rather than just ENTER.


Hope this helps / Lars-Åke


Thanks it works, but would there be any formula that would calculate
automatically the result without having to press CTRL+SHIFT+ENTER.
.- Hide quoted text -


- Show quoted text -



The sum formula won't work, because if for instance on one cell there
is a +10 and on another a -10 it will indicate "row with no data"
while there are values. Please let me know any other formula that
would work.


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default check if any values on row

this one will do the trick

=IF(COUNT(D1:CT1)-COUNTIF(D1:CT1,0),"Row with data","Empty row")



"Norvascom" wrote:

On Feb 28, 8:02 pm, Teethless mama
wrote:
Try this:

=IF(SUM(D1:CT1),"Row with data","Empty row")



"Norvascom" wrote:
On Feb 28, 4:01 pm, Lars-Ã…ke Aspelin wrote:
On Sun, 28 Feb 2010 12:37:37 -0800 (PST), Norvascom


wrote:
Hi,


I am trying to have a formula on cell A1 for example that would look
on cells D1:CT1 to see if there are any values different than 0 (in
other words not empty or equal to 0).
If there are any values different than 0, cell A1 would indicate "Row
with data" if none, it would say "Empty row".


Any help would be appreciated.
Thanks


Try this formula:


=IF(OR(D1:CT1<0),"Row with data","Empty row")


Note: This is an array formula that should be confirmed with
CTRL+SHIFT+ENTER rather than just ENTER.


Hope this helps / Lars-Ã…ke


Thanks it works, but would there be any formula that would calculate
automatically the result without having to press CTRL+SHIFT+ENTER.
.- Hide quoted text -


- Show quoted text -



The sum formula won't work, because if for instance on one cell there
is a +10 and on another a -10 it will indicate "row with no data"
while there are values. Please let me know any other formula that
would work.
.

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default check if any values on row

Another one...
=IF(MAX(INDEX(ABS(D1:CT1),)),"Row with data","Empty row")


"Teethless mama" wrote:

this one will do the trick

=IF(COUNT(D1:CT1)-COUNTIF(D1:CT1,0),"Row with data","Empty row")



"Norvascom" wrote:

On Feb 28, 8:02 pm, Teethless mama
wrote:
Try this:

=IF(SUM(D1:CT1),"Row with data","Empty row")



"Norvascom" wrote:
On Feb 28, 4:01 pm, Lars-Ã…ke Aspelin wrote:
On Sun, 28 Feb 2010 12:37:37 -0800 (PST), Norvascom

wrote:
Hi,

I am trying to have a formula on cell A1 for example that would look
on cells D1:CT1 to see if there are any values different than 0 (in
other words not empty or equal to 0).
If there are any values different than 0, cell A1 would indicate "Row
with data" if none, it would say "Empty row".

Any help would be appreciated.
Thanks

Try this formula:

=IF(OR(D1:CT1<0),"Row with data","Empty row")

Note: This is an array formula that should be confirmed with
CTRL+SHIFT+ENTER rather than just ENTER.

Hope this helps / Lars-Ã…ke

Thanks it works, but would there be any formula that would calculate
automatically the result without having to press CTRL+SHIFT+ENTER.
.- Hide quoted text -

- Show quoted text -



The sum formula won't work, because if for instance on one cell there
is a +10 and on another a -10 it will indicate "row with no data"
while there are values. Please let me know any other formula that
would work.
.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default check if any values on row

for instance on one cell there is a +10
and on another a -10


Try this, all on one line...

=IF(SUM(COUNTIF(D1:CT1,{"<0","0"})),
"Row with data","Empty row")

--
Biff
Microsoft Excel MVP


"Norvascom" wrote in message
...
On Feb 28, 8:02 pm, Teethless mama
wrote:
Try this:

=IF(SUM(D1:CT1),"Row with data","Empty row")



"Norvascom" wrote:
On Feb 28, 4:01 pm, Lars-Åke Aspelin wrote:
On Sun, 28 Feb 2010 12:37:37 -0800 (PST), Norvascom


wrote:
Hi,


I am trying to have a formula on cell A1 for example that would look
on cells D1:CT1 to see if there are any values different than 0 (in
other words not empty or equal to 0).
If there are any values different than 0, cell A1 would indicate "Row
with data" if none, it would say "Empty row".


Any help would be appreciated.
Thanks


Try this formula:


=IF(OR(D1:CT1<0),"Row with data","Empty row")


Note: This is an array formula that should be confirmed with
CTRL+SHIFT+ENTER rather than just ENTER.


Hope this helps / Lars-Åke


Thanks it works, but would there be any formula that would calculate
automatically the result without having to press CTRL+SHIFT+ENTER.
.- Hide quoted text -


- Show quoted text -



The sum formula won't work, because if for instance on one cell there
is a +10 and on another a -10 it will indicate "row with no data"
while there are values. Please let me know any other formula that
would work.


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
Formula to check duplicated values Mary Excel Discussion (Misc queries) 2 March 2nd 07 01:46 PM
Formula to Check Values between to variables John Excel Worksheet Functions 2 February 28th 06 10:30 PM
how can I check the value 1 cell against the values of entire row Danbmarine Excel Discussion (Misc queries) 5 December 7th 05 10:25 PM
Q: check a range values JIM.H. Excel Discussion (Misc queries) 2 October 21st 05 12:26 AM
How do I check for values in a list in an if statement? DJC Excel Discussion (Misc queries) 1 July 27th 05 07:13 PM


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