+ Reply to Thread
Results 1 to 3 of 3

How do print following cells according to my number.

  1. #1
    Registered User
    Join Date
    02-22-2021
    Location
    Malaysia
    MS-Off Ver
    2010
    Posts
    6

    Question How do print following cells according to my number.

    Capture3.PNG

    I want fill up the cell on Column F based on the values on C4 and C5. So for example, ON time is 1 and OFF time is 4.

    So it will print 1(ON) and 0 (OFF) according to the values key in C4 and C5.

    Then, it will repeat continuously.
    Capture.PNG

    I know I can just drag and fill, but will that be possible to make it to formula?

    Because, I want to make it automated where users just fill up the values in C4 and C5, then the it automatically fills up column F.

    Thank you so much in advance!
    Attached Images Attached Images

  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
    28,209

    Re: How do print following cells according to my number.

    Try

    in F2

    =IF(MOD(ROWS($1:1)-1,$C$4+$C$5)<$C$4,1,0)
    Attached Files Attached Files
    Last edited by JohnTopley; 02-22-2021 at 07:52 AM.

  3. #3
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: How do print following cells according to my number.

    try this :
    =IF((F2/($C$7+1))-INT((F2/($C$7+1)))=0,1,0)
    Attached Files Attached Files

+ 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. Hide specific cells from print/print preview/save as pdf only
    By ldoodle in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-15-2019, 03:33 PM
  2. [SOLVED] VBA Code to Print a number of copies defined by number in cell
    By Rosco88 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-10-2014, 08:32 AM
  3. Replies: 2
    Last Post: 01-04-2013, 04:22 PM
  4. Setting the print area with a variable number of cells...
    By kenab1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-16-2010, 07:33 PM
  5. Repeating multiple cells a set number of times to print labels
    By Jenrich in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-10-2009, 03:21 PM
  6. Replies: 2
    Last Post: 07-26-2006, 01:05 PM
  7. [SOLVED] print view & print, in excel, different size cells
    By buddyorliz in forum Excel General
    Replies: 3
    Last Post: 09-01-2005, 09:05 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