• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Autofill Columns from list

cubs610

Member
Ok. So hopefully someone has a solution to this one. Please see my excel file for more information.

I have a list that I input. Laps, Sit Ups, Jumps, Push Up, Stretch….. I tell my list how many minutes I want to work out in Total and what percentage of time I want to spend on each exercise in that time. It is easy to have Excel calculate how many minutes I spend on each exercise. It is the next step that I need help with.

Once I create this table with the entries, I want to create two columns from the information. I want the first Column to autofill in whole number increments the total number of minutes to work out. I want the second column to autofill each cell with the corresponding Exercise. So if I enter 20 minutes, there should be 1, 2, 3, …..20 minutes. If I enter 15% of time is Laps, then 3 cells should show Laps. 25% Sit Ups, then 5 cells of Sit Ups. Right now I am manually entering the column but I want it to autofill and I don’t know how to go about doing this.

I also want the two autofilled columns to update when I change the original list (total # of Minutes, or % of time)

My original problem is a much longer list (and not exercise based), but I’ve simplified for this example.

Any help appreciated.
 

Attachments

  • WorkOut.xlsx
    11.1 KB · Views: 4
Another formula option

1] E2, copy down :

=IF(F2="","",COUNTA(F$2:F2))

3] F2, copy down :

=IFERROR(INDEX(A$2:A$6,MATCH(1,INDEX(--(COUNTIF(F$1:F1,A$2:A$6)<C$2:C$6),0),0)),"")

p.s. Narayan's formula in post #.2 will give error result if B2 changed to 0%.

Regards
Bosco
 

Attachments

  • WorkOut(1).xlsx
    12.4 KB · Views: 6
Back
Top