+ Reply to Thread
Results 1 to 3 of 3

I want to convert all vlookups in worksheet to there return values but also leave in the m

  1. #1
    Registered User
    Join Date
    11-12-2012
    Location
    lawndale, ca
    MS-Off Ver
    Excel 2007
    Posts
    9

    I want to convert all vlookups in worksheet to there return values but also leave in the m

    I WANT TO CONVERT ALL VLOOKUPS IN WORKSHEET TO THERE RETURN VALUES BUT ALSO LEAVE IN THE MATH OPERATORS

    FOR EXAMPLE SAY CELL C12 IS ADDING 2 VLOOKUPS + I WANT A MACRO TO HAVE C12 READ =1125+100 NOT PASTE VALUE OF =1225

    I want to run a macro that will take out the vlookups but leave the individual numbers that add or subtract so Cell C12 will be 1225 when viewing but if you click within cell C12 it will be =1125+100

    Below is an example with numbers.

    THE FORMULA IN C12 READS =VLOOKUP("120-00-0000",A:C,3,FALSE)+VLOOKUP("210-00-0000",A:C,3,FALSE)
    THE FORMULA IN C13 READS =VLOOKUP("120-00-0000",A:C,3,FALSE)-VLOOKUP("210-00-0000",A:C,3,FALSE)
    THE FORMULA IN C14 READS =VLOOKUP("120-00-0000",A:C,3,FALSE)/VLOOKUP("210-00-0000",A:C,3,FALSE)
    THE FORMULA IN C15 READS =VLOOKUP("120-00-0000",A:C,3,FALSE)*VLOOKUP("210-00-0000",A:C,3,FALSE)

    I WANT A MACRO TO CONVERT THE CELL C12=VLOOKUP("120-00-0000",B:D,3,FALSE)+VLOOKUP("210-00-0000",B:D,3,FALSE) TO =1125+100 BUT NOT PASTE VALUE OF 1225
    I WANT A MACRO TO CONVERT THE CELL C13=VLOOKUP("120-00-0000",B:D,3,FALSE)-VLOOKUP("210-00-0000",B:D,3,FALSE) TO =1125-100 BUT NOT PASTE VALUE OF 1025
    I WANT A MACRO TO CONVERT THE CELL C14=VLOOKUP("120-00-0000",B:D,3,FALSE)/VLOOKUP("210-00-0000",B:D,3,FALSE) TO =1125/100 BUT NOT PASTE VALUE OF 11.25
    I WANT A MACRO TO CONVERT THE CELL C15=VLOOKUP("120-00-0000",B:D,3,FALSE)*VLOOKUP("210-00-0000",B:D,3,FALSE) TO =1125*100 BUT NOT PASTE VALUE OF 112500

    ROW/COL A B C
    1 ACCOUNT NUMBER ACCOUNT TITLE Balance
    2 104-61-0000 CASH 5,000.00
    3 120-00-0000 ACCOUNTS RECEIVABLE-A 1,125.00
    4 120-02-0000 ACCOUNTS RECEIVABLE-B 3,120.00
    5 120-26-0000 ACCOUNTS RECEIVABLE-C 400.00
    6 210-00-0000 ACCOUNTS PAYABLE-A 250.00
    7 210-02-0000 ACCOUNTS PAYABLE-B 450.00
    8 210-06-0000 ACCOUNTS PAYABLE-C 100.00
    9 237-01-0000 ACCRUED LIABILITIES-A 125.00
    10 237-03-0000 ACCRUED LIABILITIES-B 320.00
    11
    12 1,225.00
    13 1,025.00
    14 11.25
    15 112,500.00
    Last edited by chriszoma; 09-20-2013 at 02:09 PM.

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: I want to convert all vlookups in worksheet to there return values but also leave in t

    the trick is vlookup(...) &"-"& vlookup(...)

  3. #3
    Registered User
    Join Date
    11-12-2012
    Location
    lawndale, ca
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: I want to convert all vlookups in worksheet to there return values but also leave in t

    I want to run a macro that will take out the vlookups but leave the individual numbers that add or subtract so Cell C12 will be 1225 when viewing but if you click within cell C12 it will be =1125+250
    Also the second vlookup if looking up 210-00-0000 not 210-06-0000

+ 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] Two Vlookups to Return Text?
    By harknessa in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-29-2013, 04:17 PM
  2. IF Statement to return Vlookups vased off cell
    By kmarks247 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-19-2013, 04:45 PM
  3. Using VLOOKUPS to return mulitple values
    By mscomputertutor in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-14-2010, 10:05 AM
  4. Vlookups to return format as well as values
    By kosciosco in forum Excel General
    Replies: 1
    Last Post: 11-21-2007, 09:49 AM
  5. Replies: 2
    Last Post: 04-18-2005, 01: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