+ Reply to Thread
Results 1 to 11 of 11

Replicating the next cell above that contains data

  1. #1
    Registered User
    Join Date
    05-09-2017
    Location
    England
    MS-Off Ver
    Office 2016
    Posts
    6

    Replicating the next cell above that contains data

    Hi, probably a simple one for you all. I have a table containing stock/contract information and then one column containing the stock price. At the bottom of this I want the cell to read the last price entered for that stock. Some of the cells don't contain data. I have tried INDEX with a COUNT function but this just gives me the last cell. Any help appreciated.
    Last edited by mra 14; 05-09-2017 at 06:15 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,629

    Re: Replicating the next cell above that contains data

    Post a sample workbook
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    05-09-2017
    Location
    England
    MS-Off Ver
    Office 2016
    Posts
    6

    Re: Replicating the next cell above that contains data

    Capture1.JPG so it is the price column

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,629

    Re: Replicating the next cell above that contains data

    OK ... So, that's a picture and not a workbook, just a picture of a sheet within the workbook. That said, I can't tell what you expect the result to be, or why.

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Replicating the next cell above that contains data

    Hi and welcome to the forum

    Pictures are of little value. Honestly, no one wants to re-type your data to try and solve your issue. Additionally, we would only be guessing at how your data was structured, ie. formulas, formatting, etc. Additionally, due to how some browsers behave, many of our members cannot see uploaded pictures/images. Please do not take this route.

    Please attach a sample file that represents what you have. The structure of your attachment should be the same structure as your actual data. Any proprietary information should be changed.

    Include in the attachment any code you're currently using (whether it works or not) and an "After" of what you wish the output to be.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

  6. #6
    Registered User
    Join Date
    05-09-2017
    Location
    England
    MS-Off Ver
    Office 2016
    Posts
    6

    Re: Replicating the next cell above that contains data

    Hi, sorry I am new to this, where is the option to add a workbook? The column titled 'Price/t' contains the different prices paid for each contract. The cell at the bottom (highlighted red with exclamation mark) needs to replicate the next cell above that contains data >0, regardless of the other prices.

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Replicating the next cell above that contains data

    but I'll try, maybe this one will help:

    =INDEX($B$2:$B$10,MATCH(99^9,$B$2:$B$10))
    see att.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    05-09-2017
    Location
    England
    MS-Off Ver
    Office 2016
    Posts
    6

    Re: Replicating the next cell above that contains data

    I was just in the middle of uploading it, but that was the answer I needed thanks! That's working just the way I need it to. Thanks again, sorry I'm new to this!

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Replicating the next cell above that contains data

    You mean thanks for instruction How to upload workbook or Solution?

  10. #10
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Replicating the next cell above that contains data

    Anyway thanks for the feedback and mark thread solved

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,629

    Re: Replicating the next cell above that contains data

    Thanks for the rep, much appreciated, but Sandy did all the work

+ 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. Replicating data on different worksheets
    By John Adams in forum Excel General
    Replies: 0
    Last Post: 06-09-2016, 04:14 AM
  2. Replicating data according with conditions
    By Le_Kev in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2015, 02:01 AM
  3. Replicating the data in Excel
    By srikanth38 in forum Excel General
    Replies: 6
    Last Post: 04-17-2014, 09:15 PM
  4. [SOLVED] replicating rows of data via VBA
    By Wedge120 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-16-2013, 03:31 PM
  5. Replies: 9
    Last Post: 05-01-2012, 11:50 AM
  6. Replicating data
    By leonardsway in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-05-2007, 02:23 AM
  7. Replicating Data
    By RichardAllen in forum Excel General
    Replies: 4
    Last Post: 12-11-2006, 01:35 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