+ Reply to Thread
Results 1 to 8 of 8

Below Formula working only for US and not for UK

  1. #1
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Post Below Formula working only for US and not for UK

    I have the below formula with me and works for US region but not for UK

    Please Login or Register  to view this content.
    Any help is appreciated.

    Rates is a table naming (which actually resides in a different sheet.)

    Any other formula to achieve similar output is also fine for me.

    Thanks.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Below Formula working only for US and not for UK

    What is VLOOKUP parameter: if a date then it could simple be a US vs UK date problem

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Re: Below Formula working only for US and not for UK

    i need the output in Resource Usage sheet in V13 Cell.
    Attached Files Attached Files

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Below Formula working only for US and not for UK

    just offhand, maybe if / and to replace the if if...
    =IF(AND(D1="US",D13="Offshore"),VLOOKUP(C13,Rates,3,0),IF(AND(D1="US",D13="Onsite"),VLOOKUP(C13,Rates,5,0),IF(AND(D1="UK",D13="Offshore"),VLOOKUP(C13,Rates,7,0),IF(AND(D1="UK",D13="Onsite"),VLOOKUP(C13,Rates,9,0)))))))))
    (untested and might have to check the number of parens)
    And also offhand, maybe UK has a space in D1 like "UK " which could cause your issue.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Below Formula working only for US and not for UK

    Try

    =IF(D1="US",IF(D13="Offshore",VLOOKUP(C13,Rates,3,0),IF(D13="Onsite",VLOOKUP(C13,Rates,5,0))),IF(D1="UK",IF(D13="Offshore",VLOOKUP(C13,Rates,7,0),IF(D13="Onsite",VLOOKUP(C13,Rates,9,0)))))

    Or Shorter (assuming only Offshore or Onsite as options)

    =IF(D1="US",IF(D13="Offshore",VLOOKUP(C13,Rates,3,0),VLOOKUP(C13,Rates,5,0)),IF(D1="UK",IF(D13="Offshore",VLOOKUP(C13,Rates,7,0),VLOOKUP(C13,Rates,9,0))))
    Last edited by JohnTopley; 04-12-2018 at 05:13 AM.

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Below Formula working only for US and not for UK

    actually this looks like it fixes it...
    =IF(AND(D1="US",D13="Offshore"),VLOOKUP(C13,Rates,3,0),IF(AND(D1="US",D13="Onsite"),VLOOKUP(C13,Rates,5,0),IF(AND(D1="UK",D13="Offshore"),VLOOKUP(C13,Rates,7,0),IF(AND(D1="UK",D13="Onsite"),VLOOKUP(C13,Rates,9,0)))))

  7. #7
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Below Formula working only for US and not for UK

    Perhaps this
    =INDEX(Rates,MATCH(C13,INDEX(Rates,,1),0),MATCH($D$1&" "&D13,Rates!$C$3:$N$3,0))
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  8. #8
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: Below Formula working only for US and not for UK

    One way:

    =VLOOKUP(C13,Rates,MATCH($D$1&" "&D13,Rates!$C$3:$N$3,0),0)

+ 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. Format a part of a text working with only value not working with formula result
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-10-2017, 05:41 AM
  2. [SOLVED] help index and match macro not working but formula working??
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-28-2016, 06:37 AM
  3. Replies: 3
    Last Post: 05-14-2015, 07:32 AM
  4. Correct/Working (Index,Match) formula not working between cells
    By barnerd in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 02-11-2014, 01:20 PM
  5. Replies: 9
    Last Post: 03-08-2013, 11:50 AM
  6. Replies: 2
    Last Post: 08-17-2012, 08:16 AM
  7. Replies: 2
    Last Post: 08-01-2012, 11:53 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