PC Review


Reply
Thread Tools Rate Thread

AND(), OR() in EXCEL

 
 
=?Utf-8?B?zp3Ouc66zr/Pgg==?=
Guest
Posts: n/a
 
      24th Jul 2006
Hi.
In general case, how can i use the AND() and OR() in a column?. For example
lets say that I have a column (A1:A100) with numbers, text and blank cells.
How can I say:

1) If one cell is number then give me the SUM of the column, else print “”
2) If all cells are numbers then give me the SUM of the column, else print “”

In those cases we use Cntrl + Shift + Enter?

Th.

 
Reply With Quote
 
 
 
 
Biff
Guest
Posts: n/a
 
      24th Jul 2006
Hi!

My best guess is:

=IF(COUNT(A1:A100)>0,SUM(A1:A100),"")

Biff

"?????" <@discussions.microsoft.com> wrote in message
news:BFA3A0EF-EFE7-430F-AF2C-(E-Mail Removed)...
> Hi.
> In general case, how can i use the AND() and OR() in a column?. For
> example
> lets say that I have a column (A1:A100) with numbers, text and blank
> cells.
> How can I say:
>
> 1) If one cell is number then give me the SUM of the column, else print
> ""
> 2) If all cells are numbers then give me the SUM of the column, else print
> ""
>
> In those cases we use Cntrl + Shift + Enter?
>
> Th.
>



 
Reply With Quote
 
=?Utf-8?B?zp3Ouc66zr/Pgg==?=
Guest
Posts: n/a
 
      24th Jul 2006
Thank you. What about if all cells must be numbers to print SUM()?

Ο χρήστης "Biff" *γγραψε:

> Hi!
>
> My best guess is:
>
> =IF(COUNT(A1:A100)>0,SUM(A1:A100),"")
>
> Biff
>
> "?????" <@discussions.microsoft.com> wrote in message
> news:BFA3A0EF-EFE7-430F-AF2C-(E-Mail Removed)...
> > Hi.
> > In general case, how can i use the AND() and OR() in a column?. For
> > example
> > lets say that I have a column (A1:A100) with numbers, text and blank
> > cells.
> > How can I say:
> >
> > 1) If one cell is number then give me the SUM of the column, else print
> > ""
> > 2) If all cells are numbers then give me the SUM of the column, else print
> > ""
> >
> > In those cases we use Cntrl + Shift + Enter?
> >
> > Th.
> >

>
>
>

 
Reply With Quote
 
Harald Staff
Guest
Posts: n/a
 
      24th Jul 2006
=IF(COUNT(A1:A100)=100,SUM(A1:A100),"")

HTH. Best wishes Harald

"?????" <@discussions.microsoft.com> skrev i melding
news:CC01F481-A070-4090-A522-(E-Mail Removed)...
> Thank you. What about if all cells must be numbers to print SUM()?
>
> ? ??????? "Biff" ???????:
>
>> Hi!
>>
>> My best guess is:
>>
>> =IF(COUNT(A1:A100)>0,SUM(A1:A100),"")
>>
>> Biff
>>
>> "?????" <@discussions.microsoft.com> wrote in message
>> news:BFA3A0EF-EFE7-430F-AF2C-(E-Mail Removed)...
>> > Hi.
>> > In general case, how can i use the AND() and OR() in a column?. For
>> > example
>> > lets say that I have a column (A1:A100) with numbers, text and blank
>> > cells.
>> > How can I say:
>> >
>> > 1) If one cell is number then give me the SUM of the column, else
>> > print
>> > ""
>> > 2) If all cells are numbers then give me the SUM of the column, else
>> > print
>> > ""
>> >
>> > In those cases we use Cntrl + Shift + Enter?
>> >
>> > Th.
>> >

>>
>>
>>



 
Reply With Quote
 
Biff
Guest
Posts: n/a
 
      24th Jul 2006
Or, if your range isn't exactly A1:A100 (which is very easy to determine the
size of the range):

=IF(COUNT(A1:A100)=ROWS(A1:A100),SUM(A1:A100),"")

Biff

"Harald Staff" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> =IF(COUNT(A1:A100)=100,SUM(A1:A100),"")
>
> HTH. Best wishes Harald
>
> "?????" <@discussions.microsoft.com> skrev i melding
> news:CC01F481-A070-4090-A522-(E-Mail Removed)...
>> Thank you. What about if all cells must be numbers to print SUM()?
>>
>> ? ??????? "Biff" ???????:
>>
>>> Hi!
>>>
>>> My best guess is:
>>>
>>> =IF(COUNT(A1:A100)>0,SUM(A1:A100),"")
>>>
>>> Biff
>>>
>>> "?????" <@discussions.microsoft.com> wrote in message
>>> news:BFA3A0EF-EFE7-430F-AF2C-(E-Mail Removed)...
>>> > Hi.
>>> > In general case, how can i use the AND() and OR() in a column?. For
>>> > example
>>> > lets say that I have a column (A1:A100) with numbers, text and blank
>>> > cells.
>>> > How can I say:
>>> >
>>> > 1) If one cell is number then give me the SUM of the column, else
>>> > print
>>> > ""
>>> > 2) If all cells are numbers then give me the SUM of the column, else
>>> > print
>>> > ""
>>> >
>>> > In those cases we use Cntrl + Shift + Enter?
>>> >
>>> > Th.
>>> >
>>>
>>>
>>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy Paste failed in excel file migrated from Excel 2003 to Excel Handong Chen Microsoft Excel Crashes 1 4th Mar 2010 06:05 PM
Application coded in excel 2000 when used in excel 2003 excel doesnot perform well and takes double the time to give the output Prince Microsoft Excel Programming 4 17th Feb 2009 03:05 PM
Problem with Excel reports ::::Excel 2003 Migration To Excel 2007 =?Utf-8?B?c2hhc2hhbmsga3Vsa2Fybmk=?= Microsoft Excel Programming 0 5th Oct 2007 10:26 AM
Excel 2003 crashes loading excel files created Excel 2000 =?Utf-8?B?SmVmZiBMZXdpbiAgQXVzdHJhbGlh?= Microsoft Excel Misc 0 27th Jun 2005 04:20 AM
Why my Excel 2003 don't open excel files by duble click on excel . =?Utf-8?B?VmFseQ==?= Microsoft Excel Crashes 1 20th Jan 2005 03:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:33 AM.