+ Reply to Thread
Results 1 to 6 of 6

Add numbers to cells before the first and after the last value in row

  1. #1
    Registered User
    Join Date
    10-21-2019
    Location
    sweden
    MS-Off Ver
    2016
    Posts
    5

    Add numbers to cells before the first and after the last value in row

    Hi!

    I have a question regarding adding numbers in a chart. I have a list of dates and numbers, I would like to add a fixed number (21 is just an example but it can be the same number all across the board) before the first and after the last value in each row. I can't really figure out a way to do this without going over each row individually. I have about 2.000 rows so that would be a pain.

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    10-13-2015
    Location
    Culloden, West Virginia
    MS-Off Ver
    2010
    Posts
    168

    Re: Add numbers to cells before the first and after the last value in row

    We need more info. what is the criteria that causes the numbers to generate? Just a blank space? We need to know the "Why".

  3. #3
    Registered User
    Join Date
    10-21-2019
    Location
    sweden
    MS-Off Ver
    2016
    Posts
    5
    Thank you for your reply.

    The value should be added before the first current value in each row and after the last current value in the row. It can be any number as long as Its greater than 0.

    So, I want to extend each row with 2 values directly in front and behind the first and last current values in each row. I know im describing it poorly but not sure how to out it in any other way.

    Thanks in advance

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Add numbers to cells before the first and after the last value in row

    You could use formula to check cells and output either the cell value, fixed value or #N/A so the datapoint is ignored.

    You will need slightly different formula for 1st column compare to the other so the series labels do not confuse the formula
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  5. #5
    Registered User
    Join Date
    10-21-2019
    Location
    sweden
    MS-Off Ver
    2016
    Posts
    5

    Re: Add numbers to cells before the first and after the last value in row

    It works perfectly, you are brilliant!

    Thank you so much!

  6. #6
    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,779

    Re: Add numbers to cells before the first and after the last value in row

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    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. [SOLVED] Projecting numbers into various cells from a bunch of numbers in single cell
    By LAVA2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-28-2018, 06:44 AM
  2. [SOLVED] Compare two cells with comma delimited numbers and display the numbers that are NOT duplic
    By ks100 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-13-2014, 02:22 PM
  3. Replies: 7
    Last Post: 02-27-2014, 10:56 PM
  4. [SOLVED] Delete text, split numbers to two cells and store as numbers
    By Steve_123 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-10-2014, 09:51 AM
  5. Replies: 3
    Last Post: 01-08-2014, 10:50 PM
  6. [SOLVED] How to merge a numbers from 3 cells, eliminate repetitive numbers, and sort such numbers?
    By david gonzalez in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-22-2012, 11:59 AM
  7. [SOLVED] Vlookup formula - return only numbers for cells containing text and numbers
    By Andrew E Smith in forum Excel General
    Replies: 11
    Last Post: 07-03-2012, 06:07 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