Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / July 2006

Tip: Looking for answers? Try searching our database.

if conditions in EXCEL

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Νικος - 17 Jul 2006 06:52 GMT
Hi.
Generally, how can we apply an if condition in a column?. For example let
say that I have a column D1:D1000. How can I say in D1001, if all cells
include numbers multiply them (D1*D2*….D1000), else if one cell include text
or blank then don’t print anything in D1001.
Thank you.
VBA Noob - 17 Jul 2006 07:15 GMT
This should give you a start

=IF(OR(ISBLANK(D1:D8),ISTEXT(D1:D8)),"",D1*D2*D3*D4*D5*D6*D7*D8)

Insert as a array Ctrl + Shift + Enter.

Signature

VBA Noob

Bondi - 17 Jul 2006 07:39 GMT
wrote:
> Hi.
> Generally, how can we apply an if condition in a column?. For example let
> say that I have a column D1:D1000. How can I say in D1001, if all cells
> include numbers multiply them (D1*D2*.D1000), else if one cell include text
> or blank then dont print anything in D1001.
> Thank you.

Hi,

Another way could be to use something like this:

=IF(COUNT(D1:D1000)<1000,"",PRODUCT(D1:D1000))

Regards,
Bondi
Biff - 17 Jul 2006 07:41 GMT
Hi!

Try this:

=IF(COUNT(D1:D1000)<ROWS(D1:D1000),"",PRODUCT(D1:D1000))

I don't know what kind of numbers might be in the range but multiplying 1000
of them could lead to a huge number.

Biff

> Hi.
> Generally, how can we apply an if condition in a column?. For example let
[quoted text clipped - 3 lines]
> or blank then don't print anything in D1001.
> Thank you.
VBA Noob - 17 Jul 2006 07:59 GMT
Thanks

Never used Product before

VBA Noo
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.