+ Reply to Thread
Results 1 to 10 of 10

VLOOKUP/MIN Problem

  1. #1
    Registered User
    Join Date
    10-07-2017
    Location
    London
    MS-Off Ver
    365
    Posts
    12

    VLOOKUP/MIN Problem

    Evening all,

    I am looking for some help please. I have searched and searched but I can not find the answer or figure it out.

    OK, so i have two sheets with the same items, but different prices. In the second sheet I also want it to show me which price is cheaper, either the first or second sheet but must also search it but the item name is it may be in different rows per sheet.

    I have attached an example of what I am looking to do with a brief description.

    Hopefully someone can help me

    Thanks
    Mart
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: VLOOKUP/MIN Problem

    Try this in C1 copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    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: VLOOKUP/MIN Problem

    you could try it this way (in the shop B column C1) =IF(VLOOKUP(A1,ShopA!$A$1:$B$5,2,FALSE)>B1,"ShopA","ShopB")
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Registered User
    Join Date
    10-07-2017
    Location
    London
    MS-Off Ver
    365
    Posts
    12

    Re: VLOOKUP/MIN Problem

    Fantastic, they both work perfectly

    Thank you very much

  5. #5
    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: VLOOKUP/MIN Problem

    you're welcome, glad to help.

  6. #6
    Registered User
    Join Date
    10-07-2017
    Location
    London
    MS-Off Ver
    365
    Posts
    12

    Re: VLOOKUP/MIN Problem

    OK, so after I have put the formula into my spreadsheet which is more complicated, i thought i would be able to adapt the formula to what I require. I've hit a brick wall I think its something to do with the columns.

    I've attached a spreadsheet identical to the one i will be using.

    Thank you, again
    Attached Files Attached Files

  7. #7
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: VLOOKUP/MIN Problem

    The first column of the VLOOKUP must contain the lookup value.

    Since the lookup value is in column D, you can change ShopA!$A$2:$AA$21,23 to ShopA!$D$2:$W$21,20

  8. #8
    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: VLOOKUP/MIN Problem

    this is what you should have in col X of ShopB instead... =IF(VLOOKUP(D2,ShopA!$D$2:$W$21,20,FALSE)>W2,"ShopA","ShopB")
    you pointed the lookup part to the wrong range and used the wrong range and count over.
    Hope that helps.

  9. #9
    Registered User
    Join Date
    10-07-2017
    Location
    London
    MS-Off Ver
    365
    Posts
    12

    Re: VLOOKUP/MIN Problem

    Thanks Sambo Kid. I was close, learning on the job thank you

  10. #10
    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: VLOOKUP/MIN Problem

    You're welcome... again !

+ 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. Vlookup problem in a loop with cell property and variable cell problem (long title sry)
    By ExcelsiorLux in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-13-2013, 10:38 AM
  2. Replies: 6
    Last Post: 05-28-2013, 05:08 PM
  3. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  4. [SOLVED] vLOOKUP and MAX problem
    By nzlittleman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-10-2012, 01:29 AM
  5. Vlookup problem
    By Wskip49 in forum Excel General
    Replies: 12
    Last Post: 03-09-2011, 09:56 AM
  6. vlookup problem and count problem
    By thy00123 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-05-2009, 04:31 AM
  7. VLOOKUP problem
    By nander in forum Excel General
    Replies: 1
    Last Post: 01-31-2007, 07:25 PM
  8. VLOOKUP problem with using a -
    By MrSales in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-30-2006, 07:10 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