+ Reply to Thread
Results 1 to 9 of 9

Help with lookup formula that uses two conditions.

  1. #1
    Registered User
    Join Date
    10-11-2015
    Location
    Omaha, NE
    MS-Off Ver
    Microsoft Starter 2010
    Posts
    35

    Help with lookup formula that uses two conditions.

    Here is where all the data will go and where each the conditions are located A1:AG (Full Table Size - A1:G59):

    Facility Spellcraft Craftsmanship Divine Economics Alchemy Warfare
    RP S C D E A W
    1
    10
    25

    Here is where the data comes from J1:L18 (Full Table Size - J1:L169):

    Facility RP Upgrade
    S 1 Enchanting
    C 1 Dummy Targets
    D 1 Blessing
    E 1 Coinage
    A 1 Plague
    W 1 Assault
    S 10 Channeling
    C 10 Cultivation
    D 10 Inflame
    E 10 Recycling
    A 10 Transmutation
    W 10 Dueling
    C 25 Light Condenser
    D 25 Cursing
    E 25 Commerce
    A 25 Deflagration
    W 25 War Funds

    Now what I want the formula to be placed in B3:G5. The Conditions needed are that they match the Facility (by using the Letters) and the RP Numbers. The result should have it where the Upgrades that match both conditions will appear in the formula locations.

    For anything that doesn't match, I want a blank space or a - to appear.

    I would prefer a formula that doesn't require a certain order to appear as I tend to sort the order of the second table. I also plan to format the Upgrade Column with different fill and text colors, so I want the formula also to copy the font format if it doesn't already do this itself.

    Thanks for any and all help anyone can provide.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Help with lookup formula that uses two conditions.

    Attach a sample workbook. (Not a picture!)
    Make sure there is just enough data to demonstrate your need. Include a BEFORE (original) sheet and an AFTER (required output) 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, it should reflect original structure of your data.
    Remember to desensitize the data.
    Note:
    • Please do not attach password protected workbooks/worksheets
    • Please do not attach file(s) from exterior servers
    • Please do not attach file(s) with enabled any Workbook Open/Autorun macros!

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

  3. #3
    Registered User
    Join Date
    10-11-2015
    Location
    Omaha, NE
    MS-Off Ver
    Microsoft Starter 2010
    Posts
    35

    Re: Help with lookup formula that uses two conditions.

    Here is the workbook you wanted me to upload with the Original Sheet and Desired Output.
    Attached Files Attached Files

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,915

    Re: Help with lookup formula that uses two conditions.

    B3
    Please Login or Register  to view this content.
    Try this and copy and paste across
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Help with lookup formula that uses two conditions.

    On Original sheet in B3 try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    confirm by Control+Shift+Enter (if not it will not work), drag accross and down as far as you need.
    Attached Files Attached Files
    Last edited by sandy666; 02-06-2017 at 03:14 AM.

  6. #6
    Registered User
    Join Date
    10-11-2015
    Location
    Omaha, NE
    MS-Off Ver
    Microsoft Starter 2010
    Posts
    35

    Re: Help with lookup formula that uses two conditions.

    Quote Originally Posted by nflsales View Post
    B3
    Please Login or Register  to view this content.
    Try this and copy and paste across
    This worked almost perfectly. The only thing it doesn't do is copy the cell format. I will just have to figure out how to copy the cell format (fill/font colors), otherwise it works for what I wanted.

    Thanks for the help.

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Help with lookup formula that uses two conditions.

    There doesn't exist any standard Excel function that does what you are asking. You need a user defined function (UDF) to be built via VBA

  8. #8
    Registered User
    Join Date
    10-11-2015
    Location
    Omaha, NE
    MS-Off Ver
    Microsoft Starter 2010
    Posts
    35

    Re: Help with lookup formula that uses two conditions.

    Quote Originally Posted by sandy666 View Post
    There doesn't exist any standard Excel function that does what you are asking. You need a user defined function (UDF) to be built via VBA
    Do you know how I would go about that? If not I can make the post in VBA section of the forums.

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Help with lookup formula that uses two conditions.

    Quote Originally Posted by PixelPug View Post
    Do you know how I would go about that? If not I can make the post in VBA section of the forums.
    Just do 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. [SOLVED] Formula to LOOKUP two Conditions and return 1 or 0
    By hammer2 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-18-2015, 09:44 AM
  2. [SOLVED] Need formula to lookup minimum/maximum value combined with multiple conditions
    By VincentNL in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-29-2014, 09:27 AM
  3. [SOLVED] Lookup latest value given conditions (might be array formula?)
    By ashakespeare in forum Excel General
    Replies: 4
    Last Post: 06-03-2014, 02:19 PM
  4. [SOLVED] Help with if formula to combine two lookup conditions
    By lilsnoop in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-25-2014, 10:14 AM
  5. More complex lookup formula help (sickness conditions)
    By burnsie in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 07-18-2013, 09:00 AM
  6. Replies: 3
    Last Post: 07-13-2013, 11:59 AM
  7. [SOLVED] LookUP formula matching muitiple conditions
    By Excel Dumbo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-08-2013, 08:56 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