+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 28
  1. #1
    Registered User
    Join Date
    05-04-2005
    Posts
    11

    Problem with formula

    =IF(ISERROR((vlookup($A$2:$A$31,
    Sheet2!$A$2:$A$14, 1, 0)), "Not Active", ((vlookup($A$2:$A$31,
    Sheet2!$A$2:$A$14, 1, 0))).

    Im using this formula to take names from one sheet and display on another sheet but when I put the formula in B2 Im not getting any results. Can someone help me please?

  2. #2
    Forum Guru swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Minnesota, USA
    MS-Off Ver
    Excel 2003
    Posts
    1,545
    Your Vlookup formula can only read from ONE lookup value (reference cell) at a time... hence your formula in B2:

    =IF(ISERROR((vlookup($A$2:$A$31,Sheet2!$A$2:$A$14,1,0)), "Not Active",vlookup($A$2:$A$31,Sheet2!$A$2:$A$14,1,0))).

    should be:

    =IF(ISERROR((vlookup($A2,Sheet2!$A$2:$A$14,1,0)),"Not Active",((vlookup($A2,Sheet2!$A$2:$A$14,1,0))).

    then copy this down the range B3:B31. Each cell in 'B' will return either the matching value from Sheet2 or the "Not Active" text.

    Note the change in the vlookup reference from $A$2:$A$31 to $A2. As you copy this down, the range will change in B3 to $A3, in B4 to $A4, etc.

    HTH

    Bruce
    Bruce
    The older I get, the better I used to be.
    Minneapolis, MN USA

  3. #3
    Registered User
    Join Date
    05-04-2005
    Posts
    11
    For some reason Im having problems with the "Not Active" statement in the formula Im getting #value! in red as an error?

  4. #4
    Forum Guru swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Minnesota, USA
    MS-Off Ver
    Excel 2003
    Posts
    1,545
    I think there is a syntax error in the original formula, copy and paste this into B2:

    =IF(ISERROR(VLOOKUP($A2,Sheet2!$A$2:$A$14,1,0)),"Not Active",(VLOOKUP($A2,Sheet2!$A$2:$A$14,1,0)))


    Does this work for you?
    Bruce
    The older I get, the better I used to be.
    Minneapolis, MN USA

  5. #5
    Bob Phillips
    Guest

    Re: Problem with formula

    =IF(ISERROR(VLOOKUP($A2,Sheet2!$A$2:$A$14,1,0)),"Not
    Active",((VLOOKUP($A2,Sheet2!$A$2:$A$14,1,0))))

    --

    HTH

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


    "numerion" <numerion.1rpcav_1120576048.5616@excelforum-nospam.com> wrote in
    message news:numerion.1rpcav_1120576048.5616@excelforum-nospam.com...
    >
    > For some reason Im having problems with the "Not Active" statement in
    > the formula Im getting #value! in red as an error?
    >
    >
    > --
    > numerion
    > ------------------------------------------------------------------------
    > numerion's Profile:

    http://www.excelforum.com/member.php...o&userid=22975
    > View this thread: http://www.excelforum.com/showthread...hreadid=384538
    >




  6. #6
    Dave Peterson
    Guest

    Re: Problem with formula

    And you have another response at your other thread in .programming.

    numerion wrote:
    >
    > =IF(ISERROR((vlookup($A$2:$A$31,
    > Sheet2!$A$2:$A$14, 1, 0)), "Not Active", ((vlookup($A$2:$A$31,
    > Sheet2!$A$2:$A$14, 1, 0))).
    >
    > Im using this formula to take names from one sheet and display on
    > another sheet but when I put the formula in B2 Im not getting any
    > results. Can someone help me please?
    >
    > --
    > numerion
    > ------------------------------------------------------------------------
    > numerion's Profile: http://www.excelforum.com/member.php...o&userid=22975
    > View this thread: http://www.excelforum.com/showthread...hreadid=384538


    --

    Dave Peterson

  7. #7
    Bob Phillips
    Guest

    Re: Problem with formula

    =IF(ISERROR(VLOOKUP($A2,Sheet2!$A$2:$A$14,1,0)),"Not
    Active",((VLOOKUP($A2,Sheet2!$A$2:$A$14,1,0))))

    --

    HTH

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


    "numerion" <numerion.1rpcav_1120576048.5616@excelforum-nospam.com> wrote in
    message news:numerion.1rpcav_1120576048.5616@excelforum-nospam.com...
    >
    > For some reason Im having problems with the "Not Active" statement in
    > the formula Im getting #value! in red as an error?
    >
    >
    > --
    > numerion
    > ------------------------------------------------------------------------
    > numerion's Profile:

    http://www.excelforum.com/member.php...o&userid=22975
    > View this thread: http://www.excelforum.com/showthread...hreadid=384538
    >




  8. #8
    Dave Peterson
    Guest

    Re: Problem with formula

    And you have another response at your other thread in .programming.

    numerion wrote:
    >
    > =IF(ISERROR((vlookup($A$2:$A$31,
    > Sheet2!$A$2:$A$14, 1, 0)), "Not Active", ((vlookup($A$2:$A$31,
    > Sheet2!$A$2:$A$14, 1, 0))).
    >
    > Im using this formula to take names from one sheet and display on
    > another sheet but when I put the formula in B2 Im not getting any
    > results. Can someone help me please?
    >
    > --
    > numerion
    > ------------------------------------------------------------------------
    > numerion's Profile: http://www.excelforum.com/member.php...o&userid=22975
    > View this thread: http://www.excelforum.com/showthread...hreadid=384538


    --

    Dave Peterson

  9. #9
    Bob Phillips
    Guest

    Re: Problem with formula

    =IF(ISERROR(VLOOKUP($A2,Sheet2!$A$2:$A$14,1,0)),"Not
    Active",((VLOOKUP($A2,Sheet2!$A$2:$A$14,1,0))))

    --

    HTH

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


    "numerion" <numerion.1rpcav_1120576048.5616@excelforum-nospam.com> wrote in
    message news:numerion.1rpcav_1120576048.5616@excelforum-nospam.com...
    >
    > For some reason Im having problems with the "Not Active" statement in
    > the formula Im getting #value! in red as an error?
    >
    >
    > --
    > numerion
    > ------------------------------------------------------------------------
    > numerion's Profile:

    http://www.excelforum.com/member.php...o&userid=22975
    > View this thread: http://www.excelforum.com/showthread...hreadid=384538
    >




  10. #10
    Dave Peterson
    Guest

    Re: Problem with formula

    And you have another response at your other thread in .programming.

    numerion wrote:
    >
    > =IF(ISERROR((vlookup($A$2:$A$31,
    > Sheet2!$A$2:$A$14, 1, 0)), "Not Active", ((vlookup($A$2:$A$31,
    > Sheet2!$A$2:$A$14, 1, 0))).
    >
    > Im using this formula to take names from one sheet and display on
    > another sheet but when I put the formula in B2 Im not getting any
    > results. Can someone help me please?
    >
    > --
    > numerion
    > ------------------------------------------------------------------------
    > numerion's Profile: http://www.excelforum.com/member.php...o&userid=22975
    > View this thread: http://www.excelforum.com/showthread...hreadid=384538


    --

    Dave Peterson

  11. #11
    Bob Phillips
    Guest

    Re: Problem with formula

    =IF(ISERROR(VLOOKUP($A2,Sheet2!$A$2:$A$14,1,0)),"Not
    Active",((VLOOKUP($A2,Sheet2!$A$2:$A$14,1,0))))

    --

    HTH

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


    "numerion" <numerion.1rpcav_1120576048.5616@excelforum-nospam.com> wrote in
    message news:numerion.1rpcav_1120576048.5616@excelforum-nospam.com...
    >
    > For some reason Im having problems with the "Not Active" statement in
    > the formula Im getting #value! in red as an error?
    >
    >
    > --
    > numerion
    > ------------------------------------------------------------------------
    > numerion's Profile:

    http://www.excelforum.com/member.php...o&userid=22975
    > View this thread: http://www.excelforum.com/showthread...hreadid=384538
    >




  12. #12
    Dave Peterson
    Guest

    Re: Problem with formula

    And you have another response at your other thread in .programming.

    numerion wrote:
    >
    > =IF(ISERROR((vlookup($A$2:$A$31,
    > Sheet2!$A$2:$A$14, 1, 0)), "Not Active", ((vlookup($A$2:$A$31,
    > Sheet2!$A$2:$A$14, 1, 0))).
    >
    > Im using this formula to take names from one sheet and display on
    > another sheet but when I put the formula in B2 Im not getting any
    > results. Can someone help me please?
    >
    > --
    > numerion
    > ------------------------------------------------------------------------
    > numerion's Profile: http://www.excelforum.com/member.php...o&userid=22975
    > View this thread: http://www.excelforum.com/showthread...hreadid=384538


    --

    Dave Peterson

  13. #13
    Bob Phillips
    Guest

    Re: Problem with formula

    =IF(ISERROR(VLOOKUP($A2,Sheet2!$A$2:$A$14,1,0)),"Not
    Active",((VLOOKUP($A2,Sheet2!$A$2:$A$14,1,0))))

    --

    HTH

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


    "numerion" <numerion.1rpcav_1120576048.5616@excelforum-nospam.com> wrote in
    message news:numerion.1rpcav_1120576048.5616@excelforum-nospam.com...
    >
    > For some reason Im having problems with the "Not Active" statement in
    > the formula Im getting #value! in red as an error?
    >
    >
    > --
    > numerion
    > ------------------------------------------------------------------------
    > numerion's Profile:

    http://www.excelforum.com/member.php...o&userid=22975
    > View this thread: http://www.excelforum.com/showthread...hreadid=384538
    >




  14. #14
    Dave Peterson
    Guest

    Re: Problem with formula

    And you have another response at your other thread in .programming.

    numerion wrote:
    >
    > =IF(ISERROR((vlookup($A$2:$A$31,
    > Sheet2!$A$2:$A$14, 1, 0)), "Not Active", ((vlookup($A$2:$A$31,
    > Sheet2!$A$2:$A$14, 1, 0))).
    >
    > Im using this formula to take names from one sheet and display on
    > another sheet but when I put the formula in B2 Im not getting any
    > results. Can someone help me please?
    >
    > --
    > numerion
    > ------------------------------------------------------------------------
    > numerion's Profile: http://www.excelforum.com/member.php...o&userid=22975
    > View this thread: http://www.excelforum.com/showthread...hreadid=384538


    --

    Dave Peterson

  15. #15
    Bob Phillips
    Guest

    Re: Problem with formula

    =IF(ISERROR(VLOOKUP($A2,Sheet2!$A$2:$A$14,1,0)),"Not
    Active",((VLOOKUP($A2,Sheet2!$A$2:$A$14,1,0))))

    --

    HTH

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


    "numerion" <numerion.1rpcav_1120576048.5616@excelforum-nospam.com> wrote in
    message news:numerion.1rpcav_1120576048.5616@excelforum-nospam.com...
    >
    > For some reason Im having problems with the "Not Active" statement in
    > the formula Im getting #value! in red as an error?
    >
    >
    > --
    > numerion
    > ------------------------------------------------------------------------
    > numerion's Profile:

    http://www.excelforum.com/member.php...o&userid=22975
    > View this thread: http://www.excelforum.com/showthread...hreadid=384538
    >




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.2.0