Forum Discussion

DobeJR's avatar
DobeJR
Copper Contributor
May 01, 2020
Solved

Formula to spill an array a certain # of times?

Wondering if there is a Formula to spill an array a certain # of times?  Any formulas to make this process easier would be awesome!

 

I'm creating a lookup template file, and I need to have every combination of two arrays for my rows.  My process is very tedious and wondering if some formulas would help.  If I could spill Array1 a certain number of times, that'd be nice.  Then I need to have each unique value of Array2 copied down to each set of Array1.  

 

Example:

     
 Array1Array2  
 ColorSizeCount Color:3
 redsmallCount Size:3
 bluemediumTotal combinations9
 greenlarge  
   Lookup based on Color and Size 
#ColorSize 
1redsmall  
2bluesmall  
3greensmall  
4redmedium  
5bluemedium  
6greenmedium  
7redlarge  
8bluelarge  
9greenlarge  
  • Hi DobeJR 

     

    Please see the attached workbook with your desired results

     

     

    Regards, Faraz Shaikh | MCT, MIE, MOS Master, Excel Expert

    If you find the above solution resolved your query don't forget mark as Official Answer to help the other members find it more

2 Replies

  • Hi DobeJR 

     

    Please see the attached workbook with your desired results

     

     

    Regards, Faraz Shaikh | MCT, MIE, MOS Master, Excel Expert

    If you find the above solution resolved your query don't forget mark as Official Answer to help the other members find it more

    • DobeJR's avatar
      DobeJR
      Copper Contributor

      ExcelExciting Thanks for this.  This is hurting my brain trying to understand how it's working with the MOD formula, but I think I get it.... lol 

       

      CHEERS!

Resources