Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Excel 2002: How to identify row of data ?

Hi,

Happy New Year to you.

I have the following table:

A B C D E
Total Type
1 0 -100 0 +100 0 0
B
2 0 0 0 0 0 0
A
3 0 0 0 0 0 0
A
4 -500 0 +500 0 -750 +750
B

I would like to assign row type as "A" when all the cells from column A to
E are 0, otherwise it is type "B"

I find that the formula I am using now is too long i.e.
=IF(AND(A1=0,B1=0,C1=0,D1=0,E1=0),"A","B").

Are there any shorter formulas ?


Thanks

Low
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Excel 2002: How to identify row of data ?

Hi,

Maybe this

=IF(COUNTIF(A1:E1,0)=5,"A","B")

Mike

"Mr. Low" wrote:

Hi,

Happy New Year to you.

I have the following table:

A B C D E
Total Type
1 0 -100 0 +100 0 0
B
2 0 0 0 0 0 0
A
3 0 0 0 0 0 0
A
4 -500 0 +500 0 -750 +750
B

I would like to assign row type as "A" when all the cells from column A to
E are 0, otherwise it is type "B"

I find that the formula I am using now is too long i.e.
=IF(AND(A1=0,B1=0,C1=0,D1=0,E1=0),"A","B").

Are there any shorter formulas ?


Thanks

Low

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Excel 2002: How to identify row of data ?

This is for A thru Z:

=IF(COUNTIF(A1:Z1,"<0")=0,"A","B")

--
Gary''s Student - gsnu200909


"Mr. Low" wrote:

Hi,

Happy New Year to you.

I have the following table:

A B C D E
Total Type
1 0 -100 0 +100 0 0
B
2 0 0 0 0 0 0
A
3 0 0 0 0 0 0
A
4 -500 0 +500 0 -750 +750
B

I would like to assign row type as "A" when all the cells from column A to
E are 0, otherwise it is type "B"

I find that the formula I am using now is too long i.e.
=IF(AND(A1=0,B1=0,C1=0,D1=0,E1=0),"A","B").

Are there any shorter formulas ?


Thanks

Low

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Excel 2002: How to identify row of data ?

Hello Mike,

Thanks for the formulka.

Low

"Mike H" wrote:

Hi,

Maybe this

=IF(COUNTIF(A1:E1,0)=5,"A","B")

Mike

"Mr. Low" wrote:

Hi,

Happy New Year to you.

I have the following table:

A B C D E
Total Type
1 0 -100 0 +100 0 0
B
2 0 0 0 0 0 0
A
3 0 0 0 0 0 0
A
4 -500 0 +500 0 -750 +750
B

I would like to assign row type as "A" when all the cells from column A to
E are 0, otherwise it is type "B"

I find that the formula I am using now is too long i.e.
=IF(AND(A1=0,B1=0,C1=0,D1=0,E1=0),"A","B").

Are there any shorter formulas ?


Thanks

Low

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Excel 2002: How to identify row of data ?

Hi Gary's Student,

Thanks for the formulka.

Low



"Gary''s Student" wrote:

This is for A thru Z:

=IF(COUNTIF(A1:Z1,"<0")=0,"A","B")

--
Gary''s Student - gsnu200909


"Mr. Low" wrote:

Hi,

Happy New Year to you.

I have the following table:

A B C D E
Total Type
1 0 -100 0 +100 0 0
B
2 0 0 0 0 0 0
A
3 0 0 0 0 0 0
A
4 -500 0 +500 0 -750 +750
B

I would like to assign row type as "A" when all the cells from column A to
E are 0, otherwise it is type "B"

I find that the formula I am using now is too long i.e.
=IF(AND(A1=0,B1=0,C1=0,D1=0,E1=0),"A","B").

Are there any shorter formulas ?


Thanks

Low

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
data sort with excel 2002 ShankuN Excel Worksheet Functions 1 November 12th 09 10:08 PM
Excel 2002: How to identify error in a column ? Mr. Low Excel Discussion (Misc queries) 3 November 21st 08 06:26 PM
Is there a macro to identify and remove duplicate data in Excel? Cindy Lou Excel Worksheet Functions 3 March 9th 06 03:10 AM
identify duplicate data in excel spreadsheet Mandeep Dhami Excel Discussion (Misc queries) 3 July 16th 05 01:53 PM
Data Forms in Excel 2002 kez Setting up and Configuration of Excel 1 December 8th 04 10:17 PM


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