+ Reply to Thread
Results 1 to 5 of 5

if conditions in EXCEL

  1. #1
    ÎικοÏ
    Guest

    if conditions in EXCEL

    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.


  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    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.

  3. #3
    Bondi
    Guest

    Re: if conditions in EXCEL


    =CE=9D=CE=B9=CE=BA=CE=BF=CF=82 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*=E2=80=A6.D1000), else if one cell i=

    nclude text
    > or blank then don=E2=80=99t print anything in D1001.
    > Thank you.


    Hi,

    Another way could be to use something like this:

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

    Regards,
    Bondi


  4. #4
    Biff
    Guest

    Re: if conditions in EXCEL

    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

    "?????" <@discussions.microsoft.com> wrote in message
    news:[email protected]...
    > 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.
    >




  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Thanks

    Never used Product before

    VBA Noob

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1