+ Reply to Thread
Results 1 to 4 of 4

Value lookup when the value is unknown

  1. #1
    Registered User
    Join Date
    09-17-2014
    Location
    Cambridge, England
    MS-Off Ver
    2016
    Posts
    58

    Value lookup when the value is unknown

    Hello, I basically work for an insurance broker and I am attempting to create a commission calculator within excel. I need it to allow the user to simply enter firstly a total amount in one cell. And for them to then enter the initials (two digits only) of the insurance company the premium is with. This is the issue. I cannot for the life of me get a formula to work as the formula will not know the value to check until the user has entered it.

    I need the formula to check the two digit insurer initial (against my hidden tab that contains all initials and also the commission levels in a seperate column) and return me just the value of the commission.

    Any ideas? I have tried the VLOOKUP formula but it seems to want to know the value to search for, yet the cell won't know this until the user has entered it.

    HELP!!!!

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Value lookup when the value is unknown

    Can you post a dummy spreadsheet with your input and expected results?
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    09-17-2014
    Location
    Cambridge, England
    MS-Off Ver
    2016
    Posts
    58

    Re: Value lookup when the value is unknown

    Here is the current file. Yet to be finished. But the input cells and hidden tabs are here.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Value lookup when the value is unknown

    in Staff Discount Calc!E9
    =IF(COUNTA(E4:E6)=3,VLOOKUP(E5,IF(E6=Lookup!B2:B605,Lookup!A2:D605,""),4,0)*E4,"")

    It's an Array formula, use Ctrl-Shift-Enter

  5. #5
    Registered User
    Join Date
    09-17-2014
    Location
    Cambridge, England
    MS-Off Ver
    2016
    Posts
    58

    Re: Value lookup when the value is unknown

    You are a star. That seems to work nicely.

    Cheers

+ 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. VBA: 2 open workbooks; 1 unknown; activating the unknown one
    By Janis Rainis in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-05-2014, 08:46 AM
  2. Unknown Formula changes
    By izzynh in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-15-2012, 09:32 AM
  3. Summing across unknown range in unknown cell!
    By agentred in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 10-28-2009, 10:10 AM
  4. Lookup (Unknown errors?)
    By Cyberpawz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-18-2007, 11:37 AM
  5. Unknown code
    By Peter1999 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-13-2007, 06:06 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