+ Reply to Thread
Results 1 to 9 of 9

Autofill formula for flashcards

  1. #1
    Forum Contributor Marco-Kun's Avatar
    Join Date
    04-14-2009
    Location
    Holland
    MS-Off Ver
    Dutch:2007
    Posts
    298

    Autofill formula for flashcards

    Hello everyone,

    I tried making flashcards in Excel. The first tab has the front and the back of the cards.
    The second tab has the template for the flashcards. I added 3 examples on the first tab.

    I have difficulties adding the formulas referring to the input sheet. Whenever I copy the formula, it doesn't give the output I want.
    I could manually put the formulas for a page or 2, but it would be a pain to do this for a lot of pages.

    Is there an easier way to refer to the input sheet, so when I copy the templates for more pages, the formulas refer to the correct input cell.

    I hope this makes any sense. :P

    Thanks in advance,

    Marco
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,173

    Re: Autofill formula for flashcards

    Used a VBA macro (not least because you can't copy formulae into merged cells)

    Please Login or Register  to view this content.
    Click RUN on "Input" . The output is sheets "Front" and "Back"
    Attached Files Attached Files

  3. #3
    Forum Contributor Marco-Kun's Avatar
    Join Date
    04-14-2009
    Location
    Holland
    MS-Off Ver
    Dutch:2007
    Posts
    298

    Re: Autofill formula for flashcards

    Dear John,

    Thank you for your reply.
    The formula you used actually works, right? As soon as I copy the cell with the formula to another cell, it gives me the right output, the next input in line.
    EDIT: Actually, nevermind. I think this only works for the first page, as soon as I copy another set of Front and Back cards, it doesn't work.

    As for the VBA, that works too, except that the cards on the back of the flashcards needs to be in reverse order, or else they won't align with the cards on the front when you print double sided. That brings me to the next question, can I print them double sided when they are on different tabs?

    Kind regards and thanks for your time,

    Marco
    Last edited by Marco-Kun; 05-21-2016 at 05:30 AM.

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Autofill formula for flashcards

    Hi Marco

    I think you do not need to have 8 rows and four columns for each flash card.
    I also think you do not need to have the front and back on the same sheet.
    If so, you can use the following formulas:
    For sheet front:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    For sheet back:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    See the file Flashcards.xlsx for clarification.

  5. #5
    Forum Contributor Marco-Kun's Avatar
    Join Date
    04-14-2009
    Location
    Holland
    MS-Off Ver
    Dutch:2007
    Posts
    298

    Re: Autofill formula for flashcards

    Dear José,

    Thanks for your reply.
    Yeah, that's an option too, to just make the cells bigger. Thanks for that.
    As for the formulae, now the cards have the same 3 cards on each row; "Example 1a, Example 1a, Example 1a".
    As for the back, they need to be in reversed order, like I mentioned in the last post, for printing double sided, so they align.
    Can I do that when they are on two different tabs?

    Kind regards and thanks for your time,

    Marco

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,173

    Re: Autofill formula for flashcards

    Change this line in VBA

    ws3.Cells(rr, c) = .Cells(r, "B")

    to

    ws3.Cells(rr, 10 - c) = .Cells(r, "B")

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,173

    Re: Autofill formula for flashcards

    Reprinting double side: usually works by printing 1,3, 5 etc and then re-inserting in printer to print 2,4 ,6 so having separate sheets worked. Never tried it with Excel!

  8. #8
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Autofill formula for flashcards

    Quote Originally Posted by Marco-Kun View Post
    Dear José,

    Thanks for your reply.
    Yeah, that's an option too, to just make the cells bigger. Thanks for that.
    As for the formulae, now the cards have the same 3 cards on each row; "Example 1a, Example 1a, Example 1a".
    As for the back, they need to be in reversed order, like I mentioned in the last post, for printing double sided, so they align.
    Can I do that when they are on two different tabs?

    Kind regards and thanks for your time,

    Marco
    Yes you Can
    Use this formula to back sheet
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    To print you can group both sheets.

  9. #9
    Forum Contributor Marco-Kun's Avatar
    Join Date
    04-14-2009
    Location
    Holland
    MS-Off Ver
    Dutch:2007
    Posts
    298

    Re: Autofill formula for flashcards

    Thanks for your reply John and José,

    @John
    The change in VBA works. Still not sure how to print it double sided.
    The first A4 page on the Back sheet needs to be printed at the back of the first A4 page of the Front sheet.

    @José
    The formula works for the back now; the front formula shows the same result though.

    Kind regards,

    Marco

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Autofill base on Active Cell and Autofill by row count of another sheet
    By enyak in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-19-2014, 10:06 PM
  2. [SOLVED] Addition flashcards needs a little tweak!
    By exceln00b22 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 05-27-2013, 09:53 AM
  3. Replies: 0
    Last Post: 09-17-2012, 08:24 AM
  4. Macro for Autofill removes header info when there is no data to autofill
    By esturan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-06-2012, 01:42 PM
  5. Create study flashcards
    By ijtrades in forum Excel General
    Replies: 2
    Last Post: 03-24-2011, 10:08 PM
  6. How do I make flashcards from Excel spreadsheet?
    By Ellen in forum Excel General
    Replies: 2
    Last Post: 10-21-2005, 07:05 PM
  7. Replies: 1
    Last Post: 06-17-2005, 04:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1