+ Reply to Thread
Results 1 to 6 of 6

HOW TO ? - Having issue with INDEX / Match and to nest with IF

  1. #1
    Registered User
    Join Date
    10-29-2011
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    40

    HOW TO ? - Having issue with INDEX / Match and to nest with IF

    Pls. correct / suggest way to combine the following and to get desired result, currently its showing me error #N/A

    =IF(D28="FE",(INDEX(FEDEX_DOM_PRICE!B228:K302,MATCH(G28,FEDEX_DOM_PRICE!A228:A302,-1),(MATCH(B28,FEDEX_DOM_PRICE!B227:K227,0)))),("none"))

    =IF(D28="FSO",(INDEX(FEDEX_DOM_PRICE!B151:N225,MATCH(G28,FEDEX_DOM_PRICE!A151:A225,-1),(MATCH(B28,FEDEX_DOM_PRICE!B150:N150,0)))),("none"))

    =IF(D28="FPO",(INDEX(FEDEX_DOM_PRICE!B3:N148,MATCH(G28,FEDEX_DOM_PRICE!A3:A148,-1),(MATCH(B28,FEDEX_DOM_PRICE!B2:N2,0)))),("none"))


    The above are the condition checks required for Freight.
    Attached Files Attached Files

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

    Re: HOW TO ? - Having issue with INDEX / Match and to nest with IF

    the n/a at the moment is you have none of those formulas in H4 you have
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    however nested
    they look like this
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    but you still get n/a for the first one in your sample as
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    is giving n/a
    that's because
    ,
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    gives n/a
    as the text in the range FEDEX_DOM_PRICE!$B$227:$K$227 is full of leading and trailing spaces and so will not match
    so i removed them and nested the formula see attached
    Attached Files Attached Files
    Last edited by martindwilson; 07-27-2013 at 06:51 AM.
    "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

  3. #3
    Registered User
    Join Date
    10-29-2011
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: HOW TO ? - Having issue with INDEX / Match and to nest with IF

    Thanx Martin,

    My apologies, the file upload had been reworked to formula that have been pasted in the thread.

    I want to nest Three Conditions having "FE", "FSO", "FSP", having different price structure to different regions.

  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: HOW TO ? - Having issue with INDEX / Match and to nest with IF

    have you not read post #2 all the way through? the attached workbook is what you asked for

  5. #5
    Registered User
    Join Date
    10-29-2011
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: HOW TO ? - Having issue with INDEX / Match and to nest with IF

    Yes, I got now.

    Though I have not understood your last advice "FEDEX_DOM_PRICE!$B$227:$K$227 is full of leading and trailing spaces"

    Further, I have noticed that a weight "99" and above "9999" are per Kg. weight but results is showing same as respective Table Value.

    Should I have to insert a multiple value, such as " if value is >99 * match result., how to do that?

    I am learning thus might raise you silly questions.... pardon me for same.

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

    Re: HOW TO ? - Having issue with INDEX / Match and to nest with IF

    "FEDEX_DOM_PRICE!$B$227:$K$227 in your originl the text dh or whatever most had leading or trailing spaces
    eg I27
    actually in cell was DH followed by 5 spaces
    for per kilo instead of actual from table just add to the end
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by martindwilson; 07-27-2013 at 07:52 AM.

+ 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. Index-Match Issue (I Think)
    By rormis in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-24-2012, 05:43 AM
  2. [SOLVED] index match issue
    By jw01 in forum Excel General
    Replies: 3
    Last Post: 07-19-2012, 12:31 AM
  3. index match issue
    By jw01 in forum Excel General
    Replies: 1
    Last Post: 07-13-2012, 11:02 PM
  4. index match (issue)
    By step_one in forum Excel General
    Replies: 5
    Last Post: 05-16-2011, 02:58 PM
  5. index..match - issue
    By step_one in forum Excel General
    Replies: 15
    Last Post: 05-03-2011, 08:25 AM

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