doodlebug323
New Member
- Joined
- Mar 6, 2014
- Messages
- 5
I have written arrays to populate the following information:
1) the number in the 1st cell in the range containing a NUMBER to F5:
{=INDEX(N5:AR5,MATCH(TRUE,ISNUMBER(N5:AR5),0))}
2) the number in the cell at the top of the page that corresponds with the cell found by this array to E5:
{=INDEX(N4:AR4,MATCH(TRUE,ISNUMBER(N5:AR5),0))}
3) the number in the last cell in the range containing a NUMBER to H5:
{=INDEX(N5:AS5,MATCH(9.99999999999999E+307,N5:AS5))}
4) the number in the cell at the top of the page that corresponds with the cell found by this array to G5:
{=INDEX(N4:AR4,MATCH(9.99999999999999E+307,N5:AR5))}
However, I have 12 sheets per excel workbook and each sheet may end up containing 500+ rows... way to many to copy and paste this to each cell and then correct the formula as needed (so far each time I copy and paste to a new row it changes N4:AR4 to the row above where I'm pasting, I can't get it to remain the same... if it would remain the same I'd be happy to copy and paste... so, on that note, is there a way to make that one piece remain the same, or is there a way to write this to VBA to apply it to the whole workbook?
Please let me know if you have questions, I'm in desperate need of assistance, any assistance will be greatly appreciated.
Thank you!!!!!!
1) the number in the 1st cell in the range containing a NUMBER to F5:
{=INDEX(N5:AR5,MATCH(TRUE,ISNUMBER(N5:AR5),0))}
2) the number in the cell at the top of the page that corresponds with the cell found by this array to E5:
{=INDEX(N4:AR4,MATCH(TRUE,ISNUMBER(N5:AR5),0))}
3) the number in the last cell in the range containing a NUMBER to H5:
{=INDEX(N5:AS5,MATCH(9.99999999999999E+307,N5:AS5))}
4) the number in the cell at the top of the page that corresponds with the cell found by this array to G5:
{=INDEX(N4:AR4,MATCH(9.99999999999999E+307,N5:AR5))}
However, I have 12 sheets per excel workbook and each sheet may end up containing 500+ rows... way to many to copy and paste this to each cell and then correct the formula as needed (so far each time I copy and paste to a new row it changes N4:AR4 to the row above where I'm pasting, I can't get it to remain the same... if it would remain the same I'd be happy to copy and paste... so, on that note, is there a way to make that one piece remain the same, or is there a way to write this to VBA to apply it to the whole workbook?
Please let me know if you have questions, I'm in desperate need of assistance, any assistance will be greatly appreciated.
Thank you!!!!!!