+ Reply to Thread
Results 1 to 3 of 3

Including spaces in cell lookup/INDIRECT reference

  1. #1
    Forum Contributor
    Join Date
    05-28-2016
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    119

    Including spaces in cell lookup/INDIRECT reference

    I am using a function to find data in a specific cell on a specific sheet. I want to apply this to other cells via dragging the formula and having Excel work its magic adjusting the variables.
    This works fin until one of the cells i am referencing from contains a space in its data. The I get the #REF! error.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    INDEX = the spreadsheet with a variety of names listed in order and reflects the names of each sheet i need to get data from.
    A7 = the cell on INDEX which changes to A8, A9 etc as i copy the formula down my sheet (where the data will be output).
    B100 = the cell on each of the various sheets where this specific data lives. When i drag the formula across the row, I need to manually change B to C, to D etc.

    Basically i need a way to force the reference to INDEX!A7(etc) to accept spaces in the cells on sheet INDEX. I cannot remove the spaces as this will negatively impact my core data and is replicated from an external source anyway.

    Is this possible?
    Is there a way to make the B100 etc automatically change to C,D etc as i drag frtom left to right? This is not as important.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Including spaces in cell lookup/INDIRECT reference

    hi there. are you saying you have a cell in Index worksheet that has a worksheet name with space, such as "test sheet"? for that to work, maybe:
    =INDIRECT("'"&Index!A7&"'!B100")

    to change from column B to C when you copy to the right, try:
    =INDIRECT("'"&Index!A7&"'!"&ADDRESS(100,COLUMN(B1)))

    next time though, do upload an excel sample so that we do not have to manually key in your data to do a testing.

    input the desired results so that we don't have to second-guess if what we are doing is correct or not. you may look at my signature to upload an eg that is easier to understand.

    the upload attachment must be done by going to Go Advanced. click on Manage Attachments. Choose file, upload and close the window.

    if i really guessed it wrongly, please upload something according to my recommendations. try to use the solution i have given and we'll help to advise what went wrong.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor
    Join Date
    05-28-2016
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    119

    Re: Including spaces in cell lookup/INDIRECT reference

    Thank you for the reply. Your first answer solved my problem. I ran out of time to try out the second formula but will do soon.

    I understand about uploading an example, its just that this is a massive spreadsheet with many interconnected worksheets and formulas. When i tried to break it down into a simple example it all broke. I figured there was some syntax i was missing in my formula as it was working as expected for data without spaces. Thank you again.

+ 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] Indirect Formula Reference with Spaces
    By sdavidheiser in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-30-2015, 04:30 PM
  2. Indirect Sheet reference with cell reference left function and text
    By teststrip in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-01-2015, 10:31 AM
  3. [SOLVED] =INDIRECT, Sheet reference with Incremental cell reference
    By Deap in forum Excel General
    Replies: 4
    Last Post: 06-16-2014, 05:58 AM
  4. Length of a cell with fixed characters including spaces
    By treboll in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-19-2013, 02:59 PM
  5. [SOLVED] Replace absolute cell reference with Indirect cell reference in formula
    By Roothy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-11-2013, 04:46 AM
  6. [SOLVED] How to reference an entire row based on an indirect cell reference
    By echo_oscar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-31-2012, 08:50 PM
  7. [SOLVED] COUNT THE NUMBER OF LETTERS INCLUDING SPACES IN A CELL?
    By zurafz6 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-06-2006, 04:00 AM

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