+ Reply to Thread
Results 1 to 4 of 4

Same formula, different result.

  1. #1
    Registered User
    Join Date
    09-23-2012
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    12

    Same formula, different result.

    I have a lookup formula that we use to lookup monthly sales everyday from an automated spreadsheet:

    =IF(ISNA(VLOOKUP($B7,'1'!$A$2:$AS$100,20,FALSE)),0,VLOOKUP($B7,'1'!$A$2:$AS$100,20,FALSE))

    So essentially look up the employee name (B7) in Woorksheet named '1' rang A2:A100, row 20 (if no data enter 0)

    I want to use the same formula, too look up calls per employee based on a different worksheet, but still the same idea:

    =IF(ISNA(VLOOKUP($C7,CALLS!$A$2:$AS$100,4,FALSE)),0,VLOOKUP($C7,CALLS!$A$2:$AS$100,4,FALSE))

    So essentially the same formula, looking look up employee name from (C7) (different name format) in worksheet 'CALLS' range from A2:A100, row 4 (if no data enter 0)

    So it should work the same right? NO. It is not working, essentially what I can figure out is for some reason it can't find the employee name, even if I change the name, the format make sure they match etc.

    I have tested it is looking for the information in the right worksheet, just not finding the employees name??

    I've been on this for 2 days!!! Does someone see my mistake?

    Thanks,

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Same formula, different result.

    =IF(ISNA(VLOOKUP($C7,CALLS!$A$2:$AS$100,4,FALSE)),0,VLOOKUP($C7,CALLS!$A$2:$AS$100,4,FALSE))



    Are you sure the value in C7 is somewhere within CALLS!A2:A100? A lookup_value has to be found in the LEFTMOST column (column 1) of the range you provide. So C7 must be present in column A of the CALLS table or it will error
    Last edited by Speshul; 10-01-2014 at 02:52 PM.
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  3. #3
    Registered User
    Join Date
    09-23-2012
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Same formula, different result.

    BINGO!!

    Thank you!!!

  4. #4
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Same formula, different result.

    Sometimes a second set of eyes is all you need

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Code result wrong but formula correct result
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-11-2014, 12:26 PM
  2. Convert a formula result to text so another formula can find that result
    By rwoollams in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-12-2014, 01:49 AM
  3. [SOLVED] Help with Formula using variable as Date and result as integer, error in my result
    By Elomaldo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-22-2014, 04:20 PM
  4. isblank & vlookup formula returns #n/a result and incorrect result
    By helpmeplease333 in forum Excel General
    Replies: 5
    Last Post: 05-06-2012, 11:41 PM
  5. Advanced formula - Return result & Show Cell Reference of result
    By Irv in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-05-2006, 10:40 PM

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