+ Reply to Thread
Results 1 to 5 of 5

Can VLOOKUP (or INDEX) work with LEN for different Cell Formats?

  1. #1
    Registered User
    Join Date
    12-06-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    46

    Can VLOOKUP (or INDEX) work with LEN for different Cell Formats?

    Hello Everyone,

    I have a report that I generate that I use a VLOOKUP function to return an amount from one tab and place it on the first tabe where the project number matches.



    Is it possible to do the following:



    1. If the two tabs are stored as different formats (one as Text, one as General), can I still get a return value?

    The reason I'm asking this is because the table array or the lookup value may have trailing zeros (i.e. 800000.0010 becomes 800000.001) that are lost if I convert to Number and I lose the return value(s) during a VLOOKUP process...



    2. If one level is at 2 and the table array has multiple rows of amounts at level 3, can the level 3 rows that match at level 2 become a SUMTOTAL and returned as one (1) value?

    For example:

    100413.0011.005.03 = 4 levels delineated by the decimal points.



    If the first tab has 100413.0011, can it look at the second tab's table and find all of the rows that begin with 100413.0011 (i.e. 100413.0011.006, 100413.0011.3, 100413.0011.006.08) and aggregate to return a single value?



    Is this impossible and I"m asking for too much? This would totally save me a LOT of time if it isn't.



    I've attached an example.
    Attached Files Attached Files
    Last edited by kibbles; 09-21-2018 at 01:16 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Is this VLOOKUP (or INDEX) impossible to do?

    Start with something like:
    Please Login or Register  to view this content.
    where:
    Level =Report!$I$2
    StrLen =Report!$J$2:$J$6
    Attached Files Attached Files
    Ben Van Johnson

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Is this VLOOKUP (or INDEX) impossible to do?

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem - not what you think the answer might be. (think google search terms?). Once you have done this please send me a PM and I will remove this request. (Also, include a link to your thread - copy from the address bar)

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (note: this change is not optional )
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    12-06-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    46

    Re: Is this VLOOKUP (or INDEX) impossible to do?

    Quote Originally Posted by protonLeah View Post
    Start with something like:
    Please Login or Register  to view this content.
    where:
    Level =Report!$I$2
    StrLen =Report!$J$2:$J$6
    Thank you! I was hoping that the SUMPRODUCT from the Report tab would populate Test tab, but I'm not that great at Excel to use your formula and back into it...

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,554

    Re: Can VLOOKUP (or INDEX) work with LEN for different Cell Formats?

    Thank You for changing the thread title.
    The following formula can be pasted into cell C2 on the Test sheet then copied down and will yield the same results as those in the manual column with few exceptions (I checked a couple and the formula was correct in those cases):
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Can you help with the impossible? Is this possible?
    By watson150 in forum Excel General
    Replies: 4
    Last Post: 07-02-2018, 10:44 PM
  2. VLOOKUP or INDEX/MATCH with multiple column index numbers
    By cerebral87 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-22-2017, 07:13 PM
  3. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  4. [SOLVED] Impossible to run XL
    By sfq in forum Excel General
    Replies: 0
    Last Post: 07-10-2006, 04:44 AM
  5. HELP? nested, complex, vlookup? The impossible!
    By ricdik in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-19-2006, 01:10 AM
  6. [SOLVED] impossible zero value
    By sybmathics in forum Excel General
    Replies: 6
    Last Post: 09-25-2005, 09:05 PM
  7. [SOLVED] Is this impossible?
    By Chris in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-10-2005, 02:06 PM

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