+ Reply to Thread
Results 1 to 3 of 3

VLookup and IF formula

  1. #1
    Registered User
    Join Date
    05-26-2011
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    72

    VLookup and IF formula

    Hi all, just hoping somebody can help advise me!
    I have a spreadsheet, with different tabs. On a 'final' sheet, I want to display the contents (financial figures) from another, so using the formula:

    =VLOOKUP(A115,'OA Report'!$A$1:$O$5000,11,0).

    Some results of this, rightfully, are pulling through a value of '£ - ', which is what I want.

    I want to however display the % in another column (L), so I then have a formula:

    =L115/K115

    However, because the value in K115 is '£ - ', the % return in column L is showing as #DIV/0!, rather than treating '£-' as '£0'. If this cell is 0, then the return in L is always 100%.

    I tried =IF(K115="-","100",L115/K115), it did not work (perhaps due to the Vlookup?) but think I need to do something in the VLookup column in the first instance? I know I can change the source on the original sheet to 0, but for various reasons I can't do that!

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: VLookup and IF formula

    try:

    =iferror(L115/K115,"")

    or (if as your profile states) you are using Excel 2003:

    =if(iserror(L115/k115),"",L115/k115)
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    05-26-2011
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    72

    Re: VLookup and IF formula

    That's great, thanks. Slightly changed, to not show a blank if there is an error, but "100%'.
    Also, thanks for pointing out my profile...no, now on 2013! Thanks, will update.

+ 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] additional criteria in vlookup/if formula. formula error
    By tmw6 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-27-2015, 07:57 AM
  2. vlookup, index/match formula factoring in time(days) and IF formula
    By rishijain11 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-08-2014, 06:37 PM
  3. [SOLVED] Vlookup with column name instead of col_index_name(3rd Section of Vlookup formula)
    By akulka58 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-21-2014, 10:42 AM
  4. [SOLVED] VBA code for change vlookup formula to vlookup formula with ISNA
    By erprasannaa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2013, 03:33 AM
  5. Vlookup referencing a vlookup formula
    By laurenann in forum Excel General
    Replies: 1
    Last Post: 01-24-2011, 05:52 PM
  6. Replies: 2
    Last Post: 10-08-2009, 09:51 PM
  7. vlookup-reate a vlookup formula?
    By Pam C in forum Excel General
    Replies: 1
    Last Post: 03-16-2006, 12:15 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