Mulitple Combinations in one sheet


New Member

So, I'm not too sure how to go about this.

I have 2 tables:

one lists loans (amount, term, type (reducing debt orlevel) –
the second list is for types of life cover amount, term,type, cost)

The maximum loans is six and I 'm looking to also limit the policies to six aswell.

I have already had some help with VBA to get all the combinations for the loans – this runshorizontally and can have a maximum of 63 combinations (this will varydepending on input) for from column "E:AGO"

If there are two loans – you would only get 3 outcome(E:S:AG) etc. but if there were 6 loans there would be 63 combinatons.

Above each combinations I have an array and this listsall the policies that meet the criteria (term and type) and this createsmultiple lists above the loan combinations.

What I would like to try and do is create combinationsfor each of the ‘policy lists’ above – if there were two loans – these possibilitieswould be:
E20:E25 / S20:S25 / AG20:AG25……but all the way to “AGO20:AGO25”

This could mean 63 different combinations.
If there are no policies that meet the criteria the rangefor that would be blank …
I need the result starting from row 45 and each combinationin a separate row as I will need to add data and formula next two each one anda gap of 3 row between each calculation as I need to add in totals.

Data in range E20:E25 – combination result in E45
Data in range S20:S25 – combination result in S45
Data in range AG20:AG25 – combination result in AG45
Data in range AU20:AU25 – combination result in AU45
If the range in blank then there is no combination..

Hope this makes sense, if at all possible?


Some videos you may like

This Week's Hot Topics

  • Importing multiple excel files into one spreadsheet
    Hi, I'm trying to import multiple excel files (with the same format into a single spreadsheet) so that each day's file is listed underneath the...
  • find many based on a certain criteria
    good evening, I hope someone can help me? I have a workbook sheet 2 contains lots of data.... I would like to be able to find anything on sheet...
  • How to copy multiple rows using If
    Hi all, I'm very new to VBA and have written this simple code to copy certain cells if a certain cell within that row contains any data. I need...
  • VBA If statement
    Dear All, I have two dates, where I'd like a message box to pop, if the dates are between this criteria. [CODE] sDate1 = #10/1/2019#...
  • Text Format
    I have a sheet for user to keyin the data. The format of the data can be 451 / 1903, 0012 / 9908 or 00287 / 0099. The number after the "/" is...
  • Syntax errors
    Good Morning, Trying to compile a workbook, I keep getting a few errors. Here are the first two: [code=rich]Syntax Error: Function...