+ Reply to Thread
Results 1 to 4 of 4

Require formula to identify a number, not text

  1. #1
    Registered User
    Join Date
    11-12-2011
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    31

    Require formula to identify a number, not text

    I have the following formula which currently allows me to overcome the maximum 7 if formula limitation, however I have it looking at text and I wish to use the formula to look up a numerical value.

    Formula in cell AF10 is: If(AE10<>"",INDEX(R10:AD10,MATCH(AE10,R7:AD7,0)),"")

    AE10 represents the minimum price in the range from R10:AD10 with R7:AD7 representing the name of the companies submitted price.

    I am trying to get the name of the company that matches the cheapest price to come up in cell AF10, however all I get is #NA.

    Appreciate any assistance

    FBS
    Last edited by Fbs1960; 12-18-2011 at 07:18 AM.

  2. #2
    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: Require formula to identify a number, not text

    Hi Fbs1960

    I think that you have to modify your formula. Something like this maybe?

    =IF(AE10<>"";INDEX(R7:AD7;MATCH(AE10;R10:AD10;0)))

    Hope to helps you.
    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.

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

    Re: Require formula to identify a number, not text

    you need to look at what you are doing as fotis1991 shows
    the match part finds the row the info is in, so match min price ae10 against range of prices R10:AD10
    MATCH(AE10,R10:AD10,0) {warning if there are 2 or more = prices it will only find the first one}
    the result of this is a position number in that range which is then used to retrieve info from the index
    your index in this case is R7:AD7 which is only one row high
    INDEX(R7:AD7,"position number found by match") so if a10 was matched in s10 the result would be 2
    position 2 of index R7:AD7 is s7 and that is the result you'd get back for a more detailed explanation read
    here http://www.contextures.com/xlfunctions03.html
    "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

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Require formula to identify a number, not text

    Hi fbs,

    See the attached file where I have tried solving your issue with two options, choose one which you feel ok.
    In formula, Zero at the end is changed to 1 for nearest match of the price for different companies.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Attached Files Attached Files
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

+ 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