+ Reply to Thread
Results 1 to 6 of 6

Return value from another column

Hybrid View

  1. #1
    Registered User
    Join Date
    02-16-2010
    Location
    Denmark
    MS-Off Ver
    Excel 2003
    Posts
    2

    Return value from another column

    In column A there are text in row 1, 3, 7 and 15. The rest is blank. I need a fomula in column B that returns the value of A1 into B1 and B2. The value of A3 should be returned into B3, B4, B5 and B6. The value of A7 should be returned into B7, B8, B9, B10, B11, B12, B13 and B14. Does anyone know how to do this?
    Last edited by Goofy; 02-17-2010 at 10:32 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,053

    Re: Return value from another column

    I have to go.. Don't time to finnish...

    Here is start.. Your data is in rows =POWER(2;ROW(A1)-1)-1

    And you need to use them in index function...

    Hope someone else can continue
    Never use Merged Cells in Excel

  3. #3
    Valued Forum Contributor
    Join Date
    02-08-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    122

    Re: Return value from another column

    If values in column A are numbers.

    [B1]=INDEX($A$1:$A$15,MATCH(9.99E+307,$A$1:A1))

    If they are text

    [B1]=INDEX(A$1:A$15,MATCH(REPT("Z",255),A$1:A1))

    Regards

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,053

    Re: Return value from another column

    Heere, try this (with one aditional helper column)...
    Attached Files Attached Files

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,053

    Re: Return value from another column

    I'm so stupid, grrrrr...

    This is solution without helper column:

    =INDEX($A$1:$A$1000,LOOKUP(ROWS($A$1:A1),{1,3,7,15,31}))

    Difference is that you define values in lookup array because they would so quicly exceed max number of rows that it's useless to create helper colum...

    Also, extend range that would fit your data.

  6. #6
    Registered User
    Join Date
    02-16-2010
    Location
    Denmark
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Return value from another column

    Thank you for your help. This solved my problem

+ 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