+ Reply to Thread
Results 1 to 6 of 6

if function

  1. #1
    tom
    Guest

    if function

    I have 2 columns, column A has 1000 rows with either NA or
    a job number. In column B I would like to creat a function
    that give the following result: If A1 contains NA then
    return NA else return "Invoice" and drag this down for
    the 1000 or so rows. CAn anyone please help. Thanks again
    everyone.

  2. #2
    Registered User
    Join Date
    10-25-2004
    Posts
    88
    =IF(ISNA(A1),NA(),"Invoice")

  3. #3
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    I think the op means "NA" and not #N/A. Hence the formula should be something like:

    =IF(A1="NA","NA","Invoice")


    - Mangesh

  4. #4
    Bob Phillips
    Guest

    Re: if function

    =IF(ISNA(A1),A1,"Invoice")

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "tom" <[email protected]> wrote in message
    news:[email protected]...
    > I have 2 columns, column A has 1000 rows with either NA or
    > a job number. In column B I would like to creat a function
    > that give the following result: If A1 contains NA then
    > return NA else return "Invoice" and drag this down for
    > the 1000 or so rows. CAn anyone please help. Thanks again
    > everyone.




  5. #5
    Naomi
    Guest

    RE: if function

    If the 'NA' is a real error then the 3rd column should read
    =if(iserror($A1),"NA","Invoice")

    If it is the text 'NA' then =if($A1="NA","NA","Invoice")
    then drag down.

    "tom" wrote:

    > I have 2 columns, column A has 1000 rows with either NA or
    > a job number. In column B I would like to creat a function
    > that give the following result: If A1 contains NA then
    > return NA else return "Invoice" and drag this down for
    > the 1000 or so rows. CAn anyone please help. Thanks again
    > everyone.
    >


  6. #6
    Registered User
    Join Date
    10-25-2004
    Posts
    88
    To be safe from internationalization problems you should preferrably use the function NA() instead of the hard-coded "#N/A"

+ 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