+ Reply to Thread
Results 1 to 6 of 6

Autofill values in specific column

  1. #1
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Autofill values in specific column

    Looking to do:

    Is text "unit" in file name?

    If yes then perform following tasks:

    1. Look for cell containing text "location".
    2. Change the cell value to "1" for cells in the following range: From the cell immeadietly below the "location" cell, all the way until the last row with data in ANY column on the spreadsheet.


    Very important to note that the cell with value: "location" could be anywhere in the spreadsheet. I attached a sample with one possible example of where the cell could be, and how I need the script to adapt to it.

    Spreadsheet has before and after example.
    Attached Files Attached Files
    Last edited by ks100; 12-19-2013 at 04:24 PM.

  2. #2
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Re: If (text) contained in file name, then perform following checks:

    If it helps at all, the "location" cell would probably never be lower than row 20, however horizontally it could end up anywhere.

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: If (text) contained in file name, then perform following checks:

    Does this help?
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Re: If (text) contained in file name, then perform following checks:

    Quote Originally Posted by jindon View Post
    Does this help?
    Please Login or Register  to view this content.
    Yes it did, thank you, excellent work.

  5. #5
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Re: If (text) contained in file name, then perform following checks:

    Quote Originally Posted by jindon View Post
    Does this help?
    Please Login or Register  to view this content.
    Actually, one more thing. Is there a way to have it automatically skip a row before filling in the data? So basically leave one blank cell below the "location" cell and the rest of the column?

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Autofill values in specific column

    Do you mean like this?
    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. VBA code to perform mail merge using text file
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-08-2013, 04:46 AM
  2. [SOLVED] Need to perform some checks with letters in text
    By nvembos in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-02-2012, 11:40 AM
  3. [SOLVED] Create variables, perform replace, then write text file.
    By tunerX in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-16-2012, 02:02 AM
  4. [SOLVED] Formula which checks whether a string is found in a range and checks 2 criteria
    By liranbo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-30-2012, 05:28 PM
  5. Replies: 0
    Last Post: 01-05-2006, 09:45 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