+ Reply to Thread
Results 1 to 3 of 3

Adding a constant column

  1. #1
    Registered User
    Join Date
    07-19-2011
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    20

    Adding a constant column

    How do I add/insert a column that contains the number 1 for all the excel lines ? If there are 100 lines, I want to insert a column containg the number 1 in each of the 100 lines.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Adding a constant column

    Simplest way: Enter 1 in cell A1. Copy. Select range A2:A100. Paste.

    Is 100 rows your actual requirement, or are you going to reply and say "That's great, but what I really want is 374,000 rows?!" :D
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Adding a constant column

    Please Login or Register  to view this content.

+ 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] Adding constant values using object variable coding
    By highlystrung in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-01-2013, 05:18 PM
  2. adding a constant number to a column of numbers
    By Shivas Regal in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 07-25-2010, 05:43 AM
  3. Adding a specific constant value line to chart
    By harryg in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-05-2007, 07:58 PM
  4. Adding a constant to a formula. Problems w/filling in
    By zuri125 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-03-2006, 02:20 AM
  5. [SOLVED] adding 0's to the left side of a constant number cell
    By faisal alfadl in forum Excel General
    Replies: 1
    Last Post: 11-25-2005, 01:10 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