+ Reply to Thread
Results 1 to 9 of 9

Help adding something to my ifferror/Vlookup formula

  1. #1
    Forum Contributor
    Join Date
    03-15-2016
    Location
    Arnhem, The Netherlands
    MS-Off Ver
    2007
    Posts
    102

    Help adding something to my ifferror/Vlookup formula

    I have this formula that will draw a certain number out of a table
    =IFERROR(VLOOKUP($C$4,$C$20:$L$46,7,False);"")

    Now what i would also like my formula to do is be multiplied by 1.5 IF the value in basis!D19= bigger than 2002, other wise the value may remain the same
    And if possible i would love it to be round up to a number 5/10/15 etc

    I am just here wondering wether this is even possible, so if not please inform me. Any suggestions would be greatly appreciated since this is way beyond my skillset, thanks!

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Help adding something to my ifferror/Vlookup formula

    One way:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This will round up to the nearest 5. If you need something different, i.e. just round up to the next whole number then let us know.

    Note you may need to switch commas for semi colons for your version of Excel.

    BSB

  3. #3
    Forum Contributor
    Join Date
    03-15-2016
    Location
    Arnhem, The Netherlands
    MS-Off Ver
    2007
    Posts
    102

    Re: Help adding something to my ifferror/Vlookup formula

    Thanks a lot, looks good, lets see if i can get it too work!

  4. #4
    Forum Contributor
    Join Date
    03-15-2016
    Location
    Arnhem, The Netherlands
    MS-Off Ver
    2007
    Posts
    102

    Re: Help adding something to my ifferror/Vlookup formula

    It (sorta works), but it seems as if even when Basis!D19 is >2002 it will still multiply with 1,5, however my shift ends right now so it might be a few days before i start struggling with this again.
    If you maybe know why it does this, great. Otherwise ill try to find out later since i've only had 15 minutes now to look at it.

    Anyway, thanks a lot for your effort!!!!

  5. #5
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Help adding something to my ifferror/Vlookup formula

    Your original post says:
    Quote Originally Posted by The excel apprentice View Post
    multiplied by 1.5 IF the value in basis!D19= bigger than 2002, other wise the value may remain the same
    and that's what the formula does.

    Now you're saying that's not what you need? I'm confused.

    BSB

  6. #6
    Forum Contributor
    Join Date
    03-15-2016
    Location
    Arnhem, The Netherlands
    MS-Off Ver
    2007
    Posts
    102

    Re: Help adding something to my ifferror/Vlookup formula

    I think i used the wrong symbol in my response, what i meant is that when the value in basis!d19 is below 2002 it will still multiply, while its only suposed to do so when the value is above 2002.

  7. #7
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Help adding something to my ifferror/Vlookup formula

    It works for me. See the yellow cell in the attached.

    It could be that the rounding is masking the results a little.
    Did you want them rounded up to the nearest 5 as per the 5/10/15 example in your original post or just to the next whole number?

    BSB
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    03-15-2016
    Location
    Arnhem, The Netherlands
    MS-Off Ver
    2007
    Posts
    102

    Re: Help adding something to my ifferror/Vlookup formula

    It could be that i made a mistake, because i only spend little time on it before my shift ended. Im currently on my phone so i cant check your attached. And yes i wanted the number rounded to the closed number which is multiplyable by 5. But i think it is best to let it rest untill i am behind my pc so that i can check wether i screwed something up before you start spending too much effort on something you might have nailed in the first instance( allthough i greatly appreciate your effort ofcourse)

  9. #9
    Forum Contributor
    Join Date
    03-15-2016
    Location
    Arnhem, The Netherlands
    MS-Off Ver
    2007
    Posts
    102

    Re: Help adding something to my ifferror/Vlookup formula

    I've finally had some time too check your attached, if i put in any value above 2002 it appears to go blank.

    However I found out why i didn't work in my sheet, the cell Basis!D9 was set on text and not on numbers. Thank you very much, i've got it working!

    Now all I have to do is actually implement it.

+ 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] IFFERROR and INDIRECT Function is not working
    By Shahadat65 in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 02-16-2016, 12:56 AM
  2. [SOLVED] Vlookup formula is broken when adding a column
    By Perk1961 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-24-2015, 04:05 AM
  3. [SOLVED] =IFFERROR bring data over in wrong color.
    By Aussie1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-18-2013, 07:20 PM
  4. Adding a formula to VBA (IF, Vlookup etc)
    By galvinpaddy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-21-2012, 01:08 AM
  5. [SOLVED] Adding conditions to a VLOOKUP formula
    By MFCPA in forum Excel General
    Replies: 11
    Last Post: 04-18-2012, 11:48 AM
  6. adding a vlookup formula with vba
    By etsoft in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-08-2008, 11:45 AM
  7. Adding Prices on top of VLOOKUP formula
    By cjconnor24 in forum Excel General
    Replies: 10
    Last Post: 11-22-2007, 07:44 PM

Tags for this Thread

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