+ Reply to Thread
Results 1 to 9 of 9

Looking up a price band?

Hybrid View

  1. #1
    Registered User
    Join Date
    12-01-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    29

    Looking up a price band?

    Hi

    I am trying to look up a price band based upon a quantity?

    The bandings are listed below. I need to be able to return the correct price band based upon the number of users.

    For example if the number of users cell showed 21 then the price band should show N. Your help would be gratefully recieved

    A 1-1
    B 2-2
    C 3-3
    D 4-4
    E 5-9
    K 10-14
    M 15-19
    N 20-24
    P 25-49
    Q 50-99
    R 100-149
    S 150-249
    T 250-499
    U 500-999
    V 1000-1499
    W 1500-2499
    X 2500-4999
    Y 5000+

    Many Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Looking up a price band?

    PriceBanding.xlsm

    Will that do?
    Elegant Simplicity............. Not Always

  3. #3
    Registered User
    Join Date
    12-01-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Looking up a price band?

    that is great but I really need it without the command button and as a formula if at all possible.... so you enter the quantity and it automatically gives the result?

  4. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,784

    Re: Looking up a price band?

    Pinching Andy's solution to 99 % I've instead used the "Private Sub Worksheet_Change" command to fire the macro so as soon as a value is entered in cell G7 this will update the sheet.

    Alf

    Ps Any credit for solving this problem should be given to Andy!
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Looking up a price band?

    Very generous of you Alf .. Thanks very much

  6. #6
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,784

    Re: Looking up a price band?

    Not at all you did the job, I just added a bit of icing on the cake.

    Alf

  7. #7
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Looking up a price band?

    Or

    Using Worksheet Functions

    In H7 cell
    Formula: copy to clipboard
    =IFERROR(LOOKUP(G7,B7:B24,A7:A24),"")


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  8. #8
    Registered User
    Join Date
    12-01-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Looking up a price band?

    PriceBanding2a.xlsmHi and thanks for your efforts. It is almost there now although it just needs one more adaptation. I need to be able to reference another quantity cell that changes and then resolve the price band query without having to press enter. See attached which I hope makes sense

  9. #9
    Registered User
    Join Date
    12-01-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Looking up a price band?

    Thanks exactly what I was after SixthSense many thanks to all of you for your help and assistance

+ 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