+ Reply to Thread
Results 1 to 3 of 3

Need formula for Blank cells to copy previous cell data

  1. #1
    Registered User
    Join Date
    01-29-2020
    Location
    India
    MS-Off Ver
    2019
    Posts
    22

    Need formula for Blank cells to copy previous cell data

    Hi All,

    Need a Formula to copy previous cells data if the cell is blank. following are the conditions.

    1. if there are any blank or non numerical value in any cell, previous cell data should be copied except for 2nd row(b2,c2,..).

    2.if there are any blank or non numerical data in 2nd row cells they should left blank.

    3. blank cells should not contains any "0".

    Attached the excel sheet for reference.



    Thanks.
    Attached Files Attached Files
    Last edited by click2chaitu; 05-06-2023 at 05:55 AM.

  2. #2
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,868

    Re: Need formula for Blank cells to copy previous cell data

    F2
    =IF(A2="","",A2)
    copied down.

    G2
    =IF(ISNUMBER(B2),B2,IF(AND(ISTEXT(B2),NOT(ISTEXT(G1))),G1,""))
    copied down and across.
    Attached Files Attached Files

  3. #3
    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
    30,671

    Re: Need formula for Blank cells to copy previous cell data

    You will need VBA to do this if you want the result to be in the "source" columns ( B & C) as a cell can only be either data or formula.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. copy Formula & paste in same column next cell when previous column is not blank
    By sanjuss2 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-03-2020, 01:59 AM
  2. excel 16: fill blank cells with previous cell data
    By Akika in forum Excel General
    Replies: 1
    Last Post: 04-05-2019, 11:54 AM
  3. Replies: 1
    Last Post: 07-22-2016, 04:03 PM
  4. [SOLVED] Find certain word, copy and paste cell in previous row if previous row is blank
    By steven_e in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2013, 12:53 PM
  5. Copy formula down to last row of previous column which has blank rows on top
    By sam747 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-11-2012, 08:24 PM
  6. Replies: 1
    Last Post: 04-30-2012, 06:02 AM
  7. [SOLVED] How would I fill blank cells with the data from a previous cell?
    By Clive Darling in forum Excel General
    Replies: 3
    Last Post: 01-05-2005, 10:06 PM

Tags for this Thread

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