+ Reply to Thread
Results 1 to 12 of 12

Changing a IF(VLOOKUP) into VLOOKUP

  1. #1
    Forum Contributor
    Join Date
    09-11-2013
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    265

    Changing a IF(VLOOKUP) into VLOOKUP

    Hi all,

    I am currently using this formula:

    Please Login or Register  to view this content.
    Can this be changed to a VLOOKUP formula and keep the same results.

    As always, You help is greatly appreciated

    regards

    Jeremy
    Last edited by JRidge; 07-09-2014 at 11:19 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Changing a IF(VLOOKUP) into VLOOKUP

    VLOOKUP will return error if no matching is found. You can mask the error using IFERROR like below
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    ________________________________________________________
    If your problem is solved, update the thread as SOLVED: Go to the top of the first post-Select Thread Tools-Select Mark thread as Solved OR - Go to the first post - Click edit- Click Advance- Just below the word "Title:" you will see a dropdown with the word No prefix.- Change to Solve- Click Save.

    Show your gratitude to the person who helped you solving your problem by clicking on star button at the bottom of such post.

  3. #3
    Forum Contributor
    Join Date
    10-19-2012
    Location
    chennai
    MS-Off Ver
    Excel 2013
    Posts
    134

    Re: Changing a IF(VLOOKUP) into VLOOKUP

    Please Login or Register  to view this content.
    '

    try above one

  4. #4
    Forum Contributor
    Join Date
    09-11-2013
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    265

    Re: Changing a IF(VLOOKUP) into VLOOKUP

    Hi and Thank You Both,

    When i put this in my VBA script and run it, it fill the cells ok but then comes up with the following err.

    My Code:

    Please Login or Register  to view this content.
    The Error i get is:

    Laufzeitfehler 1004
    Anwendungs- oder objektdefinierter Fehler

    Any Ideas
    Last edited by JRidge; 07-09-2014 at 10:09 AM.

  5. #5
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Changing a IF(VLOOKUP) into VLOOKUP

    JRidge, you should have mentioned that you are going to use this in VBA

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    09-11-2013
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    265

    Re: Changing a IF(VLOOKUP) into VLOOKUP

    Hi hari.

    Sorry Should have mentioned that..

    Ok that works fine except all the cells that have nothing in now have 0 in... I need them blank !!

    Any Ideas

  7. #7
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Changing a IF(VLOOKUP) into VLOOKUP

    I get blanks bud. Can you share your workbook?

  8. #8
    Forum Contributor
    Join Date
    09-11-2013
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    265

    Re: Changing a IF(VLOOKUP) into VLOOKUP

    I Definatly get all zeros where cells are empty

  9. #9
    Forum Contributor
    Join Date
    09-11-2013
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    265

    Re: Changing a IF(VLOOKUP) into VLOOKUP

    Bit Complicated to use....
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    09-11-2013
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    265

    Re: Changing a IF(VLOOKUP) into VLOOKUP

    The piece of code is used in the "MitArbeiter Zuweisen" Userform, "Save" Button

  11. #11
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Changing a IF(VLOOKUP) into VLOOKUP

    JRidge, as I said VLOOKUP will return error only if it could not find what you are looking for. In your workbook, the date you are looking for is found and VLOOKUP returned the 3rd column value which is 0. No problem with the formula.

    If you want the 0s to blank. You have to use IF.

  12. #12
    Forum Contributor
    Join Date
    09-11-2013
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    265

    Re: Changing a IF(VLOOKUP) into VLOOKUP

    Then i go back to my IF(VLOOKUP) version..

    Thanks for your help.

    Regards

    Jeremy

+ 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. Changing Vlookup into SQL
    By djblois1 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-24-2014, 04:12 PM
  2. [SOLVED] vlookup changing columns
    By amartino44 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-12-2013, 10:23 PM
  3. [SOLVED] Changing CSE formula and changing Vlookup to Index Match
    By stockgoblin42 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-21-2013, 08:18 PM
  4. Replies: 3
    Last Post: 01-11-2012, 11:27 AM
  5. Changing vlookup value in VB
    By benno87 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-30-2008, 08:08 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