+ Reply to Thread
Results 1 to 9 of 9

formula to fill in blanks

  1. #1
    Registered User
    Join Date
    11-12-2015
    Location
    london
    MS-Off Ver
    2005
    Posts
    37

    formula to fill in blanks

    Hello

    Im after a formula which poulate a cell with a number and copy it down until it comes across a different number.

    For example in the attached spreadsheet the numbers are in column A and id like to get the results which shown in column C but done by a formula. So in cell C2 it would pick up the number in A2 until and copy until there was a different number in column A.

    Hopefully that is clear and any help will be greatly appreciated.
    Attached Files Attached Files
    Last edited by watchthisspace; 01-05-2017 at 06:48 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: formula to fill in blanks

    Hi,

    The workbook wasn't attached. The paperclip 'attach item' isn;t working. Use the 'Go Advanced' option on the bar at the bottom of the post and look underneath the post for the 'Manage Attachments' option.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    430

    Re: formula to fill in blanks

    Quote Originally Posted by watchthisspace View Post
    Hello

    Im after a formula which poulate a cell with a number and copy it down until it comes across a different number.

    For example in the attached spreadsheet the numbers are in column A and id like to get the results which shown in column C but done by a formula. So in cell C2 it would pick up the number in A2 until and copy until there was a different number in column A.

    Hopefully that is clear and any help will be greatly appreciated.
    Try in C2
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    11-12-2015
    Location
    london
    MS-Off Ver
    2005
    Posts
    37

    Re: formula to fill in blanks

    Thanks for the heads up. Ive now attached it.

  5. #5
    Registered User
    Join Date
    11-12-2015
    Location
    london
    MS-Off Ver
    2005
    Posts
    37

    Re: formula to fill in blanks

    Thanks for this. It doesnt do exactly what im after. For example its not putting anything in cell C3 except 0 where I would like it to show the number until a new one is in column A.

  6. #6
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    430

    Re: formula to fill in blanks

    In C2
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    11-12-2015
    Location
    london
    MS-Off Ver
    2005
    Posts
    37

    Re: formula to fill in blanks

    Quote Originally Posted by chullan88 View Post
    In C2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Hello

    Thanks that seems to work fine. But what if it was letters and not numbers?

    Thanks again

  8. #8
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    430

    Re: formula to fill in blanks

    You could replace 9E+99 with "zzz"


    If that solves your problem,please take time to mark the thread as solved and Add Rep for all members who have helped reach your solution.

  9. #9
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2021
    Posts
    5,984

    Re: formula to fill in blanks

    A2 is number:

    =LOOKUP(10^20,$A$2:A2)

    A2 is text:

    =LOOKUP("zzzzz",$A$2:A2)

    A2 is number or text:

    =LOOKUP(2,1/($A$2:A2<>""),$A$2:A2)

+ 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. fill in the blanks
    By pmugagga in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-07-2013, 10:54 AM
  2. Fill in the Blanks using a Formula
    By Cortlyn in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-12-2013, 04:37 AM
  3. fill in the blanks
    By JAMES GABEL in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-24-2007, 04:59 AM
  4. [SOLVED] Fill in the blanks!
    By Bhupinder Rayat in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-02-2006, 12:50 PM
  5. Fill in the blanks!
    By Bhupinder Rayat in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-02-2006, 12:50 PM
  6. Fill in the blanks!!
    By Bhupinder Rayat in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-02-2006, 12:35 PM
  7. RE: Fill in the blanks
    By Jim Thomlinson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-07-2005, 03:45 PM
  8. [SOLVED] Fill in the blanks
    By BOB in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-31-2005, 03:06 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