+ Reply to Thread
Results 1 to 7 of 7

Generating name from cell value

  1. #1
    Registered User
    Join Date
    06-21-2015
    Location
    Nice, France
    MS-Off Ver
    2007
    Posts
    9

    Generating name from cell value

    This is my first post so excuse me if the answer is trivial.

    I use names with implicit and explicit intersection extensively to work on a lot of data. Now I want to use explicit intersection to pass data from Sheet2 to Sheet1instead of direct reference functions like INDIRECT as there is a lot of movement in the source and target sheets, rows and columns comes and goes. I also want to avoid using VBA macros.

    My problem is that I want to generate one of the names for the explicit intersection from a cell value.

    I could simply manually setup each data item as:

    cell1=Rowname1 Columname1 (in Sheet 2 but all names are Workbook level)
    cell2=Rowname1 Columname2
    cell3=Rowname1 Columname3
    ....

    this forces me to change Rowname1 in each cell when I want to set up a dataset of 100 columns with cells. Could be done with Ctrl H "Replace" but I want to have Rowname1 defined as a parameter that I define and change once eg in the first cell in each column in the table. Once I change in this cell it shall then change Rowname1 in all target cells. Thereby I would have a general formula like cell=name1(from first cell) ColumnameX and can copy that to all 100 columns.

    Whatever I try I get Value fault meaning Excel can't evalute the first expression and take it as a name.
    Last edited by Ferpe; 07-24-2015 at 04:45 PM.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Generating name from cell value

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    06-21-2015
    Location
    Nice, France
    MS-Off Ver
    2007
    Posts
    9

    Re: Generating name from cell value

    Thanks, added an example file which shows what I want with fault and a mocked ideal result.

  4. #4
    Registered User
    Join Date
    06-21-2015
    Location
    Nice, France
    MS-Off Ver
    2007
    Posts
    9

    Re: Generating name from cell value

    I have actually found the answer, I shall indeed use the INDIRECT function but with a name instead of a direct cell reference; =INDIRECT(SourceRow) SourceCol1 which gives me the desired explicit intersection.

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Generating name from cell value

    Terrific - I didn't come up with anything!

    I was going to ask you whether the sample was correct!

    BTW - Welcome to the Forum!

  6. #6
    Registered User
    Join Date
    06-21-2015
    Location
    Nice, France
    MS-Off Ver
    2007
    Posts
    9

    Re: Generating name from cell value

    Thank! Finding the answer was a relief, direct referencing to fetch data is a drag, every-time one needs to add a data item the references goes bust and changing 100 occurrences it just not OK.

    Now I have a robust way of moving data between locations and sheets using explicit intersection with named ranges. Reliable, easy to maintain and no macros needed.

    I added the sample with the correct way of doing it for a few rows in this answer for reference for others. Excelforum Ferpe_ answer file 2015.07.26.xlsx

    In rows 4, 5 I have the ; (for Europe you can't use , as separator, have to use ; ) in the INDIRECT function, row 6 shows this can be left out.
    Last edited by Ferpe; 07-26-2015 at 05:54 AM.

  7. #7
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Generating name from cell value

    Thanks Ferpe!

+ 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. Replies: 3
    Last Post: 02-20-2014, 05:16 PM
  2. Generating a result from Cell Color?
    By RazedC in forum Excel General
    Replies: 1
    Last Post: 07-30-2013, 12:17 PM
  3. [SOLVED] Excel 2003 generating email if cell A < Cell B
    By mattbro in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-12-2012, 02:57 PM
  4. [SOLVED] Generating new data based on cell value
    By dan12345 in forum Excel General
    Replies: 2
    Last Post: 09-05-2012, 12:10 AM
  5. Generating report of SUM Cell in PDF file.
    By abhaywarik in forum Excel General
    Replies: 0
    Last Post: 06-21-2012, 05:38 AM
  6. how to show up 2 values generating a cell
    By Occhifurbi in forum Excel General
    Replies: 1
    Last Post: 09-09-2010, 08:50 AM
  7. Generating DDE function using cell reference
    By David Hardman in forum Excel General
    Replies: 0
    Last Post: 02-18-2010, 03:36 AM
  8. Generating a barcode from cell data
    By clapper in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-29-2006, 01:40 PM

Tags for this Thread

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