Results 1 to 4 of 4

Copy cell data from worksheet 1 to worksheet 2 - run macro to create and print document

Threaded View

  1. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Copy cell data from worksheet 1 to worksheet 2 - run macro to create and print documen

    was actually a little harder than i thought it was going to be
    i transferred the main data sheet on sheet 2 and insert a helper row to get row header down to line level (column A)
    after which i used the CSE formula (ctrl+shift+enter to get the {} around the formula)


    Formula: copy to clipboard
    =IF(ISERROR(INDEX($B$3:$B$83,SMALL(IF(N$1=$A$3:$A$83,IF($E$3:$E$83>0,ROW($B$3:$B$83)-2)),ROW(1:1)))),"",INDEX($B$3:$B$83,SMALL(IF(N$1=$A$3:$A$83,IF($E$3:$E$83>0,ROW($B$3:$B$83)-2)),ROW(1:1))))


    assumption i took was you cannot have more than 6 items per meal per day..this based on your previous template...if you want more you can just fill down the formulas
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Macro to Copy Master Worksheet create and paste in new auto named worksheet
    By TheRealLethality in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-15-2014, 12:46 AM
  2. [SOLVED] Macro/VBA code to Copy data from primary worksheet to a worksheet opened by macro
    By MHamid in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-30-2013, 11:10 AM
  3. Create Macro to copy and paste data from one worksheet to another and enter page breaks
    By haleakala17 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-09-2013, 02:23 PM
  4. Replies: 1
    Last Post: 08-29-2012, 07:11 PM
  5. Macro to copy worksheet content row by row to Word document
    By rkh_11 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-13-2010, 06:19 AM

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