PP3321 Active Member Jun 1, 2016 #1 If Cell A2 = 5, then I want to fill the column A from 1 to 5 automatically. *the starting location does not matter... Please see image below. Can we do this using formula...?
If Cell A2 = 5, then I want to fill the column A from 1 to 5 automatically. *the starting location does not matter... Please see image below. Can we do this using formula...?
N NARAYANK991 Excel Ninja Jun 1, 2016 #2 Hi , See the attached file. Narayan Attachments Book2.xlsx 8.3 KB · Views: 15
PP3321 Active Member Jun 1, 2016 #3 Wow thank you so much for quick post...if I could, I would give you 1000 likes...the formula is so beautiful...
Wow thank you so much for quick post...if I could, I would give you 1000 likes...the formula is so beautiful...
B bosco_yip Excel Ninja Jun 1, 2016 #4 Another option using Text function, In A6, copy across down : =TEXT(ROWS($1:1),"[<="&A$2&"]0;") Regards Bosco Attachments Text1.xlsx 8.5 KB · Views: 11
Another option using Text function, In A6, copy across down : =TEXT(ROWS($1:1),"[<="&A$2&"]0;") Regards Bosco
PP3321 Active Member Jun 1, 2016 #5 @bosco_yip wow I have never seen such formula before...I do not understand it but looks great! Thank you so much!!!
@bosco_yip wow I have never seen such formula before...I do not understand it but looks great! Thank you so much!!!
PP3321 Active Member Jun 2, 2016 #6 @bosco_yip Thank you for workbook too. It is amazing. I googled to learn your formula. I learned that you are using Custom Number Format with conditions. I did not know anything about this so thank you! http://simoncpage.co.uk/blog/2008/09/excel-custom-and-conditional-number-formatting/
@bosco_yip Thank you for workbook too. It is amazing. I googled to learn your formula. I learned that you are using Custom Number Format with conditions. I did not know anything about this so thank you! http://simoncpage.co.uk/blog/2008/09/excel-custom-and-conditional-number-formatting/
Somendra Misra Excel Ninja Jun 2, 2016 #7 Hi, Using @NARAYANK991 sir file another option can be below formula in cell A6 and copy down and across. =IF(ROWS(A$6:A6)>A$2,"",MOD(ROWS(A$6:A6),A$2+1)) Regards,
Hi, Using @NARAYANK991 sir file another option can be below formula in cell A6 and copy down and across. =IF(ROWS(A$6:A6)>A$2,"",MOD(ROWS(A$6:A6),A$2+1)) Regards,