+ Reply to Thread
Results 1 to 5 of 5

Adding a blank row if cell is filled

  1. #1
    Registered User
    Join Date
    09-21-2016
    Location
    adelaide
    MS-Off Ver
    2010
    Posts
    6

    Adding a blank row if cell is filled

    Hello,

    I would like to add a blank row if a cell contains a student name.

    my data is set out in the before picture, and i would like it layed out in the after picture.

    as i could have many students i do not want to do this manually.

    a student could have a maximum of 7 subjects and a minimum of 1.

    thank you.
    before
    before.JPG

    after
    after.JPG

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,367

    Re: Adding a blank row if cell is filled

    Consider "Student A" start on A2 and down, put this on B2 and copied down as necessary

    =IF(AND(A2<>"",A3=""),"","Subject")

  3. #3
    Registered User
    Join Date
    09-21-2016
    Location
    adelaide
    MS-Off Ver
    2010
    Posts
    6

    Re: Adding a blank row if cell is filled

    awesome that is on the right track, how do i get the grades to move down as well, and assume subject will be labelled 'English', 'Maths', 'art' etc.

  4. #4
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,367

    Re: Adding a blank row if cell is filled

    MY formula just for your example, try to provide an excel file with a clear question and accompanied by the desired result

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Adding a blank row if cell is filled

    Why do you want this layout? Data analysis will not be as easy as it would with the original layout.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Count Cell if two cells are filled and blank
    By adlx72 in forum Excel General
    Replies: 5
    Last Post: 02-13-2017, 04:28 AM
  2. Add row with formatting if text in cell OR add blank row filled with blue if blank
    By sierradk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-29-2014, 04:15 AM
  3. No Progression Until Blank Cell is Filled
    By Dbeethekidd in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-04-2013, 07:03 AM
  4. Need Cell pre-filled before adding results to it.
    By creekboy in forum Excel General
    Replies: 2
    Last Post: 02-25-2013, 01:54 PM
  5. [SOLVED] Leave a cell with a formula blank until another is filled in
    By andyking40 in forum Excel General
    Replies: 7
    Last Post: 10-31-2012, 06:15 AM
  6. CELL IS BLANK BUT NEED IT FILLED WITH SPACES TO A SPECIFIC LENGTH
    By CHARI in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  7. [SOLVED] RE: CELL IS BLANK BUT NEED IT FILLED WITH SPACES TO A SPECIFIC LENGTH
    By מיכאל (מיקי) אבידן in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-29-2005, 05: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