+ Reply to Thread
Results 1 to 36 of 36

INDIRECT function - need help

Hybrid View

  1. #1
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,651

    Re: INDIRECT function - need help

    Quote Originally Posted by dansparts View Post
    Still trying to understand.
    If I was pasting my text into A2, instead of A3, and I then wanted the value from A3 (not as currently A4) to go to C3, what would change in the formula? Just the $A$4 to $A$3?
    Not very clear for me, you just to give a trial to see what happened and post it again.

    Quote Originally Posted by dansparts View Post
    Is there any easy way to do that, and account for variability in number of characters in strings 2 & 3?
    Assuming string is in A1
    In B1:
    =TRIM(LEFT(SUBSTITUTE($A1," ",REPT(" ",100)),100))
    In C1:
    =TRIM(MID(SUBSTITUTE($A1," ",REPT(" ",100)),100,100))
    In D1:
    =TRIM(RIGHT(SUBSTITUTE($A1," ",REPT(" ",100)),100))
    Sharing: Replace any space in string with 100 spaces, then use LEFT(...,100), MID( take 100 chars start from 100) and RIGHT(...,100)
    Last edited by AliGW; 12-10-2017 at 04:19 AM. Reason: Quotation cut down to relevant portion.
    Quang PT

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,651

    Re: INDIRECT function - need help

    Quote Originally Posted by bebo021999 View Post
    In B1:
    =TRIM(LEFT(SUBSTITUTE($A1," ",REPT(" ",100)),100))
    Note: formula +0 to get real date instead of text

  3. #3
    Registered User
    Join Date
    12-07-2017
    Location
    Ohio
    MS-Off Ver
    2010
    Posts
    24

    Re: INDIRECT function - need help

    Neither of those formulas seems to work correctly.

    The 2nd one got rid of the leading zero in sub-string #2, but re-attached sub-string #3.

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,651

    Re: INDIRECT function - need help

    Quote Originally Posted by dansparts View Post
    Neither of those formulas seems to work correctly.
    The 2nd one got rid of the leading zero in sub-string #2, but re-attached sub-string #3.
    Have you tried to add zero to that MID formula?

    =TRIM(MID(SUBSTITUTE($A1," ",REPT(" ",100)),100,100))+0

+ 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. Is INDIRECT function volatile within an IF function?
    By Monimonika in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-29-2017, 12:53 PM
  2. [SOLVED] INDIRECT Function with multiple sheets - SUMIF, INDIRECT & MATCH
    By DJDRU in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-07-2014, 08:42 AM
  3. Using Indirect function inside the Search function
    By skhari in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-20-2014, 05:32 PM
  4. [SOLVED] Combining Text Function with Indirect Function
    By ninmjj in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-31-2013, 10:34 AM
  5. Sumif function using indirect function and data from different sheet
    By pronky007 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-26-2013, 12:40 PM
  6. [SOLVED] Using ROW function inside of both an Indirect and Index function returns #VALUE
    By xandermacleod in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-11-2012, 06:22 PM
  7. MATCH function within INDIRECT function not working
    By mgerada in forum Excel General
    Replies: 2
    Last Post: 09-04-2011, 08:37 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