+ Reply to Thread
Results 1 to 10 of 10

Find a lowest price for the specific SKU entered in to the text field.

  1. #1
    Registered User
    Join Date
    02-11-2019
    Location
    Vilnius
    MS-Off Ver
    365
    Posts
    5

    Unhappy Find a lowest price for the specific SKU entered in to the text field.

    Hello there. I have a project where I need to find a lowest price for the specific SKU entered in to the text field. I have 5 columns: SKU(ItemNumber), Itemtitle, Supplier1Price, Supplier2Price, Supplier3Price. Suppliers have their own prices. I want to make a button or something like that where I enter a SKU and it automatically finds the lowest price and shows it in the next cell with SupplierName



    FOR EXAMPLE:

    SKU Supplier1Price Supplier2Price Supplier3Price
    12345 0.45 0.54 3

    As you can see, Supplier1 has the lowest price. The code should automatically detect the lowest price and show it in the cell with the SupplierName (which is Supplier1Price in this case)
    Last edited by Pepe Le Mokko; 02-12-2019 at 04:32 AM. Reason: Title changed

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,815

    Re: Need a help with macro scripting

    It would be easier to test possible solutions if you could attach a copy of your file. De-sensitize the data if necessary.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    02-11-2019
    Location
    Vilnius
    MS-Off Ver
    365
    Posts
    5

    Re: Need a help with macro scripting

    Attaching a file with desensitized data.
    Hope this will help.
    Attached Files Attached Files

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Need a help with macro scripting

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Find a lowest price for the specific SKU entered in to the text field.

    welcome to the forum

    For future reference, please take a moment to read the forum rules and use thread titles that are descriptive of your problem - not what you think the answer might be. (think google search terms?).

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?

    As you are new to the board I did it for you this time

  6. #6
    Registered User
    Join Date
    02-11-2019
    Location
    Vilnius
    MS-Off Ver
    365
    Posts
    5

    Re: Need a help with macro scripting

    Thank you for your help, but it's not working.
    It shows that the qualifier is invalid. My aim is to find the lowest price for the SKU I will enter into the text field.
    qualifier.PNG

  7. #7
    Registered User
    Join Date
    02-11-2019
    Location
    Vilnius
    MS-Off Ver
    365
    Posts
    5

    Re: Find a lowest price for the specific SKU entered in to the text field.

    thank you for helping me, i will read the rules to understand how the things work out there.

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Find a lowest price for the specific SKU entered in to the text field.

    Insert a Button on your worksheet, and attach this code to the button

    Please Login or Register  to view this content.

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,522

    Re: Find a lowest price for the specific SKU entered in to the text field.

    Try
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    02-11-2019
    Location
    Vilnius
    MS-Off Ver
    365
    Posts
    5

    Re: Find a lowest price for the specific SKU entered in to the text field.

    Thank you for helping me, the only problem with this script is that I can't see the column name for the given lowest value (price). I can see the lowest value, but in this case I can't see who provides it.

+ 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. Scripting Data from website into Excel using Macro
    By kohtzewin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-27-2014, 08:40 PM
  2. Dynamic Code Generator
    By samantha_S in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-01-2013, 12:48 AM
  3. Scripting
    By prettywoman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-20-2011, 03:21 AM
  4. VBA Scripting Help!!
    By hnoshea in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-17-2006, 12:14 AM
  5. [SOLVED] SCRIPTING
    By APC25 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-28-2006, 03:35 PM
  6. Is scripting the way to go here?
    By LKG in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-09-2005, 03:05 PM
  7. VB scripting
    By PeterG in forum Excel General
    Replies: 1
    Last Post: 02-17-2005, 07:14 AM

Tags for this Thread

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