+ Reply to Thread
Results 1 to 5 of 5

Identifying a value in a range of cells

  1. #1
    Registered User
    Join Date
    04-03-2009
    Location
    yorkshire
    MS-Off Ver
    Office 365
    Posts
    87

    Identifying a value in a range of cells

    Hi

    Could anyone tell me why my calculation in the attached spreadsheet is returning the wrong result please?

    I am trying to return a value from a table identifying the range. Sheet 2 has the formula with a lookup to prov bands

    Thanks
    Attached Files Attached Files
    Last edited by Pickygame; 02-03-2014 at 06:32 AM.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,739

    Re: Identifying a value in a range of cells

    a slight change to the table and you can use
    =INDEX('Prov bands'!D1:D9,MATCH(Sheet2!B6,'Prov bands'!B1:B9,1))

    this will look for the lowest nearest value - and so only uses column B
    and will look for the lowest nearest value
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Identifying a value in a range of cells

    Hi

    One way is using this ARRAY formula.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    -- Array(CSE) { }, formulae are confirmed with Control+Shift+Enter.
    Not just Enter.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Identifying a value in a range of cells

    i'll answer the question you asked!!!!
    The bit that would give C
    =AND(VLOOKUP(3,'Prov bands'!A1:B8,2,0)<=B1,VLOOKUP(3,'Prov bands'!A1:C8,3,0)>B1)
    the vlookup
    VLOOKUP(3,'Prov bands'!A1:C8,3,0)
    returns 2000 which is NOT > than B1
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,619

    Re: Identifying a value in a range of cells

    You are checking
    VLOOKUP(3,'Prov bands'!D1:F8,3,0)>B1
    and 2000>2000 is false
    that's why

    to get what you claim is a good result use
    VLOOKUP(3,'Prov bands'!D1:F8,3,0)>=B1
    Best Regards,

    Kaper

+ 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] Excel 2010 Identifying data changed in cells and Identifying the changed rows
    By SandyLake in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-13-2013, 01:12 AM
  2. Identifying any incomplete cells in a range across a workbook
    By jonpsu22 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 12-31-2011, 10:09 PM
  3. Identifying a Minimum value in a changing Range of Cells
    By forbinski in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-23-2011, 12:02 PM
  4. Identifying Duplicate on a range of cells
    By Shadmani in forum Excel General
    Replies: 8
    Last Post: 02-24-2011, 04:11 AM
  5. [SOLVED] vba, identifying a range
    By Danny in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 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