+ Reply to Thread
Results 1 to 20 of 20

Excel 2007 : Using Formula result as TEXT for other formulas.

Hybrid View

  1. #1
    Registered User
    Join Date
    01-02-2011
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    17

    Using Formula result as TEXT for other formulas.

    Hello

    I have searched many times on google to solve this problem and was unable to find what i am looking for.

    I have 2 Sheets of data, and at certain point one cell dependes on the result of another.

    The first one is:

    =IF( INPUT!$P24=0;"";INPUT!$P2)
    With result:
    ADOLFO MANUEL GONCALVES DA SILVA

    Then... i want the result above, and do a VlookUP and search for another information, in this case de ID number of the coWorker.

    The table i use has exactly the same information but instead there is an error.
    I wont give you the error as i know its not the formula.

    One other thing-
    When i wan to use the result as NUMBER, i put "+0".
    How do i use the result as TEXT?
    I have tryed "+TEXT", "&TEXT". I dont know what to do.

    Thank you
    Best Regards

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Using Formula result as TEXT for other formulas.

    Perhaps you are saying you want something like:

    =IF(INPUT!$P24=0;"";VLOOKUP(INPUT!$P2;'anothersheet'!$A:$B;2;0))
    In terms of how you coerce a number to a string, use &"", eg: =(1*2)&""

  3. #3
    Registered User
    Join Date
    01-02-2011
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Using Formula result as TEXT for other formulas.

    Hi

    Will this help? Please open the files i uploaded.

    The first is the formula to get the name of the tecnician.
    The second finds the ID based on the name.

    The name is exactly the same but it cant find the ID, wish is in the first collumn i use in the second print screen.

    This must be this way because... well maybe not.
    IŽll try doing in reverse.
    Attached Images Attached Images
    Last edited by BlitzMX; 01-02-2011 at 02:26 PM.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Using Formula result as TEXT for other formulas.

    Images are of limited use in truth.

    We can tell from the Image that the VLOOKUP is failing to find a match but we have no idea if the names are actually listed in INPUT!O:O

    (note: your table array contains 2 coumns [O:P] yet presently you're returning column 1 - this doesn't affect the current Error but is something you should be aware of)

  5. #5
    Registered User
    Join Date
    01-02-2011
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Using Formula result as TEXT for other formulas.

    May i upload the file and expect you to work on it directly?
    If you dont mind.

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Using Formula result as TEXT for other formulas.

    by all means upload your file - I am going off line for a while but rest assured others will be able to resolve for you

  7. #7
    Registered User
    Join Date
    01-02-2011
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Using Formula result as TEXT for other formulas.

    LOL
    I can do the Vlookup with the B3 (ID number) or with the C3 (Name of the coworker)... And it works if i use the name of the coWorker.
    hehe

  8. #8
    Registered User
    Join Date
    01-02-2011
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Using Formula result as TEXT for other formulas.

    OMG i found the problem.....

    When i built the Database i Copied and pasted the cells....
    BUT... if i doubleclick on them and edit them... or just press enter.... The data is then somehow changed to "EDITED", and the other formulas work immediatly.

    IT DOESNT MAKE ANY SENSE. i didnŽt change anything on the values or formating of the cells!!!

    Is this a bug?

  9. #9
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Using Formula result as TEXT for other formulas.

    Bear in mind I can't see the file you're working on at this moment but...

    The VLOOKUP you had - which was A:E would always return #N/A irrespective of whether or not you coerced the numbers stored as strings in DB!E:E simply because the criteria does not exist in DB!A:A

    What you're describing is certainly not a bug - it's simply that if a cell is format as General and you paste in values stored as text they will remain as text.
    If you re-enter the values manually XL will see they are numbers are given the General format will treat as a number - what was stored in the cell previously is of no concern.

    Coercing the values would only make your formulae work if you're using B3 as the criteria and NOT B3&"" (ie you're searching for the number now rather than the string)

    If you want to coerce the values in DB!E:E you can do them all at once by highlighting the column -> Data -> Text to Columns -> click Finish
    (you can also select a blank cell, highlight all the number entries and run Paste Special -> Operation: Add)

  10. #10
    Registered User
    Join Date
    01-02-2011
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Using Formula result as TEXT for other formulas.

    I see
    Thank you very much.

+ 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