+ Reply to Thread
Results 1 to 5 of 5

Help with IF function...

  1. #1
    Registered User
    Join Date
    07-25-2006
    Posts
    3

    Help with IF function...

    I need to create an IF function that compares column "C" of two workbooks and if they are the same(contains the same information) then copy the contents of cell "I" to the first workbook in cell "G". Can anybody help me?



    Joe

  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
    What's In I and G ??

    Think you need to post more info

    This link might help with the comparing Column C in both workbooks

    http://www.cpearson.com/excel/duplicat.htm

    VBA Noob

  3. #3
    David Biddulph
    Guest

    Re: Help with IF function...

    "JosephWood" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I need to create an IF function that compares column "C" of two
    > workbooks and if they are the same(contains the same information) then
    > copy the contents of cell "I" to the first workbook in cell "G". Can
    > anybody help me?


    =IF(C1=[Book2]Sheet1!$C$1,IF(I1<>"",I1,""),"")

    I assume that if cell I is blank, or if the column C values don't match, you
    want blank in G?
    --
    David Biddulph



  4. #4
    Registered User
    Join Date
    07-25-2006
    Posts
    3
    Column "I" has either an e-mail address or a fax number. "G" has the words fax# or e-mail in it.


    Joe





    Quote Originally Posted by VBA Noob
    What's In I and G ??

    Think you need to post more info

    This link might help with the comparing Column C in both workbooks

    http://www.cpearson.com/excel/duplicat.htm

    VBA Noob

  5. #5
    Registered User
    Join Date
    07-25-2006
    Posts
    3
    Yes. I do want column "G" blank. I will try this formula in the morning. Thank you very much.


    Joe




    Quote Originally Posted by David Biddulph
    "JosephWood" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I need to create an IF function that compares column "C" of two
    > workbooks and if they are the same(contains the same information) then
    > copy the contents of cell "I" to the first workbook in cell "G". Can
    > anybody help me?


    =IF(C1=[Book2]Sheet1!$C$1,IF(I1<>"",I1,""),"")

    I assume that if cell I is blank, or if the column C values don't match, you
    want blank in G?
    --
    David Biddulph

+ 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