+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : IF function in correct way

  1. #1
    Forum Contributor
    Join Date
    12-23-2009
    Location
    Serbia
    MS-Off Ver
    Excel 2007
    Posts
    180

    IF function in correct way

    Hello

    Could somebody tell me what is wrong with my formula, first am I write correct formula, in example when I put formula I got result like fault condition(nije prona), formula looks :

    =IF(EXACT(A4,Sheet2!A1:A50),LOOKUP(A4,Sheet2!A1:A48,Sheet2!B1:B49),"NIJE PRONA")

    As you can see in example, I want to if found in two sheets same combination of numbers and letters (M10990A) take numbers in next right cell where combination was (56).

    Example attached and thanks in advance
    Attached Files Attached Files
    Last edited by ALEZI; 07-23-2010 at 04:52 AM.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: IF function in correct way

    Are you looking for something like =VLOOKUP(Sheet1!A2,Sheet2!$A$2:$B$4,2) ?

  3. #3
    Forum Contributor
    Join Date
    12-23-2009
    Location
    Serbia
    MS-Off Ver
    Excel 2007
    Posts
    180

    Re: IF function in correct way

    Thanks arthurbr for answer,but it doesn't work in my case (i attached attempt with your suggestion),in my i have to find way to compare values in both sheets (column A) and if be founded same values than transfer number in column B sheet 2 to column B sheet 1 and some of values could reiterate sometimes (in one table exist two or more equals values,as i showed in example).Tables are not proportional,first table is bigger then second.

    In my opinion we have to find way to recognize identical values into both table.

    Thanks for your effort.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: IF function in correct way

    ooops, try =VLOOKUP(Sheet1!A2,Sheet2!$A$2:$B$4,2,false)

  5. #5
    Forum Contributor
    Join Date
    12-23-2009
    Location
    Serbia
    MS-Off Ver
    Excel 2007
    Posts
    180

    Re: IF function in correct way

    Yes, It is works, but one thing make me a problem, when function false (in sheet 2 did not exist right combination) than in my cells would be show “N/A”, this make me problem because I cannot calculate, will be helped if function going to false than showing like “0”.

    Thanks for help.

  6. #6
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: IF function in correct way

    This is a possibility
    =if (countif(Sheet2!$A$2:$A$4,sheet1!a2),VLOOKUP(Sheet1!A2,Sheet2!$A$2:$B$4,2,false),0)

    adapt ranges to fit
    Last edited by arthurbr; 07-23-2010 at 04:05 AM.

  7. #7
    Forum Contributor
    Join Date
    12-23-2009
    Location
    Serbia
    MS-Off Ver
    Excel 2007
    Posts
    180

    Re: IF function in correct way

    Yes,it is works,thanks a lot..

+ 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