if conditions in EXCEL

  • Thread starter Îικος
  • Start date
Î

Îικος

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.
 
V

VBA Noob

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.
 
B

Bondi

Îικος said:
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.

Hi,

Another way could be to use something like this:

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

Regards,
Bondi
 
B

Biff

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
 
Top