+ Reply to Thread
Results 1 to 2 of 2

Formula fill when there are constant number of spaces between data

  1. #1
    Registered User
    Join Date
    04-13-2015
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2015 for MAC
    Posts
    1

    Formula fill when there are constant number of spaces between data

    Hello everyone,

    Background: I have a set of .txt data I've imported into Excel. It came off a R232 serial port of a Fire Alarm Panel and isn't formatted in comma or tab or even a space delimited pattern. However it is consistently spaced (5 rows between data sets). Each little group (5 rows) of information is for a single Device on the system (ex. Smoke Detector) that has an Device Address, Type, and Description.

    Problem: I'm trying to find, with no luck so far, a formula I can fill down that will take into account the spaced pattern.

    What I've Tried: Well, being dumb, I first tried doing the first three devices by simple references and seeing if Excel would recognize the pattern -- Nope.
    I then tried using the Offsets command like you see in the picture below, but that didn't work either -- it doesn't compound the offset amounts.

    Goal: If I can get the devices into a nice list, I can then export a .csv to the Fire Alarm program and not have to manually enter each device (there are over 700 in total!).

    Screenshot 2015-04-13 17.12.34.png
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Formula fill when there are constant number of spaces between data

    J3 enter =OFFSET($F$3,5*(ROW()-3),0)
    K3 enter =OFFSET($H$3,5*(ROW()-3),0)
    L3 enter = =OFFSET($B$3,(5*(ROW()-3)+1),0)&" "&OFFSET($B$3,(5*(ROW()-3)+1),1)&" "&OFFSET($B$3,(5*(ROW()-3)+1),2)&" "&OFFSET($B$3,(5*(ROW()-3)+1),3&" "&OFFSET($B$3,(5*(ROW()-3)+1),4))
    M3 enter = =OFFSET($B$3,(5*(ROW()-3)+2),0)&" "&OFFSET($B$3,(5*(ROW()-3)+2),1)&" "&OFFSET($B$3,(5*(ROW()-3)+2),2)&" "&OFFSET($B$3,(5*(ROW()-3)+2),3)&" "&OFFSET($B$3,(5*(ROW()-3)+2),4)&" "&OFFSET($B$3,(5*(ROW()-3)+2),5)
    Attached Files Attached Files

+ 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] Formula to count the number of spaces before text/number is written in a cell.
    By kmis in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-12-2013, 05:05 PM
  2. fill a cell with blank spaces using excel formula
    By Lakshminarasimhan in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-12-2013, 11:15 AM
  3. Replies: 2
    Last Post: 09-25-2012, 09:08 AM
  4. Fill down a simple formula, holding one cell constant?
    By BruceLiv in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 08-17-2012, 05:36 PM
  5. If cell contains a constant, fill row above
    By andrewc989 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2009, 04:20 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