+ Reply to Thread
Results 1 to 14 of 14

Combine Values For Cell Name

Hybrid View

LondonVirus Combine Values For Cell Name 09-05-2007, 05:39 AM
LondonVirus Why do you just view? 09-05-2007, 07:43 AM
deadlyduck Is this what you are trying... 09-05-2007, 08:21 AM
Mark@Work Patience 09-05-2007, 08:22 AM
Mark@Work Further thoughts 09-05-2007, 08:31 AM
daddylonglegs Hello LondonVirus, I presume... 09-05-2007, 08:26 AM
LondonVirus M aybe I didn't explain my... 09-05-2007, 08:54 AM
LondonVirus Thanks Mark@Work :) , I will... 09-05-2007, 08:57 AM
SamuelT It's a dirty job, but... 09-05-2007, 09:02 AM
  1. #1
    Registered User
    Join Date
    09-05-2007
    Location
    London
    Posts
    7

    Combine Values For Cell Name

    Hi,
    I have to combine two value and use them as a cell name,
    So far this gives me the cell name =("A"&A3) where A3 has a value of 2 and the autcome for the code =("A"&A3) is A2 but I wanna use that as the cell name for my formula and not have it projected as a value only if you see what I mean.

    Basicaly the reason for this is that when I write a formula in the cells and drug it down it moves 3 numbers at the time as the colomn H is split in 3 per row, so I have for example

    =(B1)
    =(B4)...

    and so on, where I want it to be

    =(B1)
    =(B2)...

    Therefore I am using the colom A to assign a row number, that the reason for the formula A"&A3

    but when I try to write a formula it doesnt work as it doesnt use the outcome A2 as a cell name but as a text value only

    Please help me...
    Attached Images Attached Images

  2. #2
    Registered User
    Join Date
    09-05-2007
    Location
    London
    Posts
    7

    Why do you just view?

    Hi,
    I was wondering why peoples are just reading my question with out trying to help me?

    Thanks

  3. #3
    Valued Forum Contributor
    Join Date
    08-31-2007
    Location
    SW Ireland
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2311 Build 16.0.17029.20068) 32-bit
    Posts
    540
    Is this what you are trying to achieve:

    In cell B4, enter this; IF(B4>1,"A"&VALUE(B4),"") and then copy it down as far as you need.

    I wasn't entirely clear of your objective so I may have misunderstood what you're doing- reply if you need something else.

  4. #4
    Forum Contributor
    Join Date
    10-27-2006
    Location
    United Kingdom
    MS-Off Ver
    EXCEL 2003 (2007 at home)
    Posts
    517

    Patience

    The formula you require is :
    =INDIRECT(address)
    which returns the value of the cell at the given address.

    There is also the formula :
    =ADDRESS(row,column,...)
    Which can help you construct the address,
    (but often it is just as easy to use the text funtions as you have).

    Mark.

  5. #5
    Forum Contributor
    Join Date
    10-27-2006
    Location
    United Kingdom
    MS-Off Ver
    EXCEL 2003 (2007 at home)
    Posts
    517

    Further thoughts

    Re-reading your post and trying to interpret what you realy realy want,

    The ROW() and COLUMN() functions might be useful.
    ROW() gives you the row number of the cell
    column() gives the column number of the cell.

    for example If you are in CELL D6 then
    =INDIRECT(ADDRESS(ROW()-3,COLUMN()+2))
    will give you the value of the cell at F3.
    The same formula in cell E7 will give you the value of the cell at G4.

    does this help?

    Mark.

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,719
    Quote Originally Posted by LondonVirus
    Hi,
    I was wondering why peoples are just reading my question with out trying to help me?

    Thanks
    Hello LondonVirus, I presume they either don't understand what you're trying to do or they understand but don't know how to achieve what you want. I think I know what you want to do. There are a few options, i.e.

    =INDIRECT("A"&A3)

    or (I prefer)

    =INDEX(A:A,A3)

  7. #7
    Registered User
    Join Date
    09-05-2007
    Location
    London
    Posts
    7

    Question

    M aybe I didn't explain my self properly guys, I need to pick up the data from an other ****, now when I drag down to get the formula copied down I get:

    =Sheet1!A2
    =Sheet1!A5
    =Sheet1!A8

    I need it to copy down and say:

    =Sheet1!A2
    =Sheet1!A3
    =Sheet1!A4
    Even though each of the rows on the active **** are splitted in 3, bec ause on the other **** they are now and if I drag down the formula as it is I would be skipping 2 values at the time and collec t only once every 3 values...


    Makes sence?


    Say I have the names:

    Mark
    Luiggi
    John
    Paul

    My coding now picks up

    Mark
    Paul...

    Skipping 2 lines at the time...

    By the ways thanks for trying to help me

  8. #8
    Registered User
    Join Date
    09-05-2007
    Location
    London
    Posts
    7
    Thanks Mark@Work , I will try that now, any other ideas are welcome

  9. #9
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,719
    Try this formula in B4 copied down

    =IF(MOD(ROW()-ROW(B$3)+1,3)<>2,"",INDEX(Sheet1!A:A,INT((ROW()-ROW(B$3)+5)/3)))

  10. #10
    Valued Forum Contributor
    Join Date
    09-23-2005
    Location
    Bristol, UK
    MS-Off Ver
    2007
    Posts
    664
    Quote Originally Posted by LondonVirus
    Maybe I didn't explain my self properly guys, I need to pick up the data from an other ****...
    It's a dirty job, but someone's got to do it!

+ 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