+ Reply to Thread
Results 1 to 4 of 4

Or

  1. #1
    Forum Contributor
    Join Date
    05-12-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    219

    Or

    Hi all,

    I have two col of data, col A and col B. I want to write a formula so that if col A is blank or col B is blank then col C is blank, if not then col C=A*B.

    Thank you,

    VBisgreat!

  2. #2
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: Or

    Hi,

    Here are a couple of options:

    =IF(AND(ISNUMBER(A1),ISNUMBER(B1)),A1*B1,"")


    =IF(COUNT(A1:B1)=2,A1*B1,"")
    Hope that helps,

    Colin

    RAD Excel Blog

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Or

    VBisgreat,

    Next time please be a bit more creative with your thread title.

    Thanks.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Or

    And also where you post the question. This doesn't appear to be a programming question
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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