+ Reply to Thread
Results 1 to 5 of 5

Model with weights trying to perform 2m vlookups!

  1. #1
    Registered User
    Join Date
    05-21-2021
    Location
    London, England
    MS-Off Ver
    365
    Posts
    9

    Model with weights trying to perform 2m vlookups!

    I have 5000 survey respondents in Sheet 1 with answers in columns C:BH

    I want to lookup the answers in each column and apply a weights (scores) stored in Sheet 2.

    So, if Respondent A, answers Yes to Q1, then apply a score of +10, if No then apply a score of -10

    I have 169 different answers all with different scores.

    I have created six columns of weights in Sheet 2, creating 6 different personality profiles. So, if the answer to Q1 is Yes, apply a weight of +10 (for Personality 1), but apply a weight +5 (for Personality 2) and so on.

    =VLOOKUP(C2,'Sheet 2'!$D:$L,2,FALSE) - for the score for Answer 1
    =VLOOKUP(D2,'Sheet 2'!$D:$L,2,FALSE) - this is for score for Answer 2 and so on....

    I repeat this across 58 columns.

    I then repeat all of this 5 times - to get my personalities scores.

    The net impact is over 2m vlookups.

    When I try and adjust the weights, it takes about 5 minutes for Excel to respond - given that it's making 2m calculations!

    I'm looking for a more elegant solution.

    Any help greatly appreciated.

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Model with weights trying to perform 2m vlookups!

    see big yellow banner - upload your workbook - help us to help you - far easier then to give you a tailored in-context solution.
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

  3. #3
    Registered User
    Join Date
    05-21-2021
    Location
    London, England
    MS-Off Ver
    365
    Posts
    9

    Re: Model with weights trying to perform 2m vlookups!

    Sorry - you're absolutely right. Please see attached. Model and Weights Query.xlsx

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Model with weights trying to perform 2m vlookups!

    Try pasting the following into cell BK2, dragging the fill handle down to cell BK4 and then, while BK2:BK4 are still selected, across to cell BR4:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Model with weights trying to perform 2m vlookups!

    This may be a little overkill, but this allows you to change the Answer number (in range BK1:DP1) and will still give you the correct answer.

    In BK2:

    =XLOOKUP(BK$1&XLOOKUP(BK$1,$C$1:$BH$1,$C2:$BH2,,0),Sheet2!$B$2:$B$17&Sheet2!$C$2:$C$17,INDEX(Sheet2!$D$2:$I$17,,MATCH($BJ$1,Sheet2!$D$1:$I$1,0)),0,0)

    (copy down and across)

+ 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] Pivot Table Slicer Field names (Data model vs Non Data Model)
    By NewYears1978 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 11-02-2021, 10:52 AM
  2. choose a model from a list and get prices from that model
    By peterroq in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-29-2021, 08:58 AM
  3. How to make a time period a variable for this model? (automating the model)
    By pigment01 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-17-2015, 12:47 PM
  4. VBA Model : Two Stage Gordon Model
    By elaph in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-29-2014, 11:37 AM
  5. Create a model that will generate a column of numbers based on model parameters
    By tncanoeguy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-01-2013, 05:47 PM
  6. Replies: 3
    Last Post: 02-17-2012, 12:44 AM
  7. [SOLVED] perform caculations on displayed value in Excel 2000-how can i perform
    By Amir in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM

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