+ Reply to Thread
Results 1 to 2 of 2

Row selections by row # OR by even/odd rows in another spreadsheet

  1. #1
    Tom
    Guest

    Row selections by row # OR by even/odd rows in another spreadsheet

    Is there a way in Excel 2003 to ONLY select ODD numbered rows in a
    formula/calculation?
    For example, in Sheet1 I have a person's name or company name that is
    contained in all odd rows (1, 3, 5, 7....) in column A. I'm creating a
    formula for Sheet2 that references the odd rows of Sheet, but I don't want to
    manually change each reference in the formulas for each cell. Row 2 contains
    phone numbers, city, state etc.
    The formula is something like
    "=if(mid(Sheet1!A1,1,1)="(",A1,mid(Sheet1!A1,5,4)) and I have other similar
    but more complex statements for the other columns of Sheet2.
    So, how do I JUST reference the ODD rows in another sheet to do the
    calculations and comparisons I need? Once the ODD rows of Sheet1 are
    referenced in Sheet2, I can create a similar conditional statement for the
    EVEN rows of Sheet1 that will be placed in Sheet2.
    Essentially, what I'm trying to do is to parse out the Sheet1 information
    that is contained in TWO rows (one odd and one even) so that I have a SINGLE
    row of useable data in Sheet2 to import into a database. It's just that the
    source data is two rows and not one and I can't change this.
    If you have an alternative idea, great....
    TIA,
    Tom

  2. #2
    Forum Contributor
    Join Date
    04-30-2004
    Posts
    122
    It seems like you would be better off using a macro to accomplish this rather than a formula. However, I'm not exactly sure of what you are looking for. Are you moving Sheet1's column A data to a Sheet2 with even rows in column A and odd rows in column B?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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