+ Reply to Thread
Results 1 to 7 of 7

fill empty cells with calcualtion

  1. #1
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Post fill empty cells with calcualtion

    hi, here i have attached sample sheet & pls check it. first sheet is my normal data & second sheet is my expected results. my request is column "K" has some empty cells. that empty cells i want to fill doing some calculation. as a my sample sheet K5 cell is 13.8 & k6 cell is empty. L5 cell is 7.5, so what want to do is that L5 cell value should copy to K5. now K5 cell is 7.5, then K5 before value is 13.8 need to (-) minus 7.5 & balance should add to empty K6.( should be 6.3).

    as per my next example is K10 cell 712 & bellow 3 cells are empty. here also as K10,k11,k12 cell need to fill from L10,L11,L12 (k10=225,k11=225,k12=225) & last empty cell(k13) should be ,(K10 before value)712 -(225+225+225)=37.

    I don't no this is possible or not. i need macro for this. pls help me. thanks in advance..
    Attached Files Attached Files
    Last edited by johncena; 12-13-2013 at 03:10 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: fill empty cells with calcualtion

    Hi johncena

    You can do it by macro, of course, but it is not necessary.

    Highlight K6 to end of data in column K

    Ctrl+g = (goto)
    Alt+s = (special)
    k =(blanks)
    <enter>

    You have now highlighted all the blank cells

    Type
    Please Login or Register  to view this content.
    then press Ctrl+enter

    All the blank cells will be filled with the formula that you want.

    If you really want it by macro - let me know

    Regards
    Alastair

  3. #3
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Re: fill empty cells with calcualtion

    Quote Originally Posted by aydeegee View Post
    Hi johncena

    You can do it by macro, of course, but it is not necessary.

    Highlight K6 to end of data in column K

    Ctrl+g = (goto)
    Alt+s = (special)
    k =(blanks)
    <enter>

    You have now highlighted all the blank cells

    Type
    Please Login or Register  to view this content.
    then press Ctrl+enter

    All the blank cells will be filled with the formula that you want.

    If you really want it by macro - let me know

    Regards
    Alastair
    thanks u very much for your reply. actually filling starting from above the blank cell. pls check my sample sheet. other thing is i need macro because this is part of other macro result.. thanks u..

  4. #4
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Re: fill empty cells with calcualtion

    bump.........................

  5. #5
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: fill empty cells with calcualtion

    Hi johncena

    It is considered bad practice (and unnecessary!) to copy the entire text of a reply.
    It is also a little premature to bump after less than 3 hours!

    actually filling starting from above the blank cell
    this would happen if you had not correctly selected blank cell only (see instructions in #2)

    I attach your file with a macro included that will fill in the blank cells. Let me know if it works for you.

    Regards
    Alastair
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Re: fill empty cells with calcualtion

    Quote Originally Posted by aydeegee View Post
    Hi johncena

    I attach your file with a macro included that will fill in the blank cells. Let me know if it works for you.

    Regards
    Alastair
    thanks a lot for your macro. actually i have found the answer & here it is..

    Please Login or Register  to view this content.

  7. #7
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: fill empty cells with calcualtion

    Hi johncena

    Ok. Glad you found a solution

    Regards
    Alastair

+ 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. [SOLVED] Fill Empty Cells
    By srikanthk in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-30-2012, 08:13 AM
  2. [SOLVED] Fill empty cells with content of full cells above it
    By julia81 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-17-2011, 03:57 PM
  3. Fill empty cells with a 0
    By vbjon in forum Excel General
    Replies: 3
    Last Post: 08-05-2008, 10:44 PM
  4. Fill empty cells
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-23-2006, 11:50 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