+ Reply to Thread
Results 1 to 9 of 9

V-Look Up Function

  1. #1
    Forum Contributor
    Join Date
    02-04-2008
    MS-Off Ver
    Microsoft Office 2007
    Posts
    261

    V-Look Up Function

    Dear All,
    I've attached a spread sheet,please some one have a look on those V-Look function on the rate columns.all i've to get is,when i click OFD rate from the drop down menu, the value 260 should come on fixed rate column,then for OFD/TW Rate, 260 should appear on fixed rate & 65 should appear on the next column,and for TP & VOR the values should be zero.can please some one help me to fix this problem.

    Thanks In Advance,

    Akbar
    Attached Files Attached Files
    Last edited by akbar; 10-14-2008 at 06:02 AM.

  2. #2
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243
    hi Akbar,

    I'm sure this could be improved (possibly by using named ranges) but the below should work...

    Please Login or Register  to view this content.
    hth
    Rob
    Rob Brockett
    Kiwi in the UK
    Always learning & the best way to learn is to experience...

  3. #3
    Forum Contributor
    Join Date
    02-04-2008
    MS-Off Ver
    Microsoft Office 2007
    Posts
    261
    Thanks Rob,
    Its Working,but how does it function,can you plz explain.

    Cheers,
    Akbar

  4. #4
    Forum Contributor
    Join Date
    02-04-2008
    MS-Off Ver
    Microsoft Office 2007
    Posts
    261

    N/A Error

    Rob,
    Please find the attached sheet,i've just added some more columns for data
    entry and copied all your formulas over there,but in some cases it is giving me
    #N/A error,can you please tell me what is the problem.


    Regards,
    Akbar
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243
    hi Akbar,

    Sorry, I made a slight error in my first formula by missing out the last parameter ("range lookup") of the Vlookup function. This meant that the default of true was used, however this rquires the lookup range to be sorted for it to work otherwise it gives N/a's as seen.

    Please replace this
    Please Login or Register  to view this content.
    with the correct version ("false" which is underlined
    Please Login or Register  to view this content.
    To help learn what formulae do, the best way to understand is usually to break them down & look at a section at a time to figure out what each part does. I'm using Excel 2003 (hopefully you do to b/c I'm not sure how to do this inother versions) & I find the best way to view a section at a time is to select the cell, click in the formula bar & then press the "fx" icon tothe left of the formula bar. This fx icon brings up a dialog box with the separate sections (argument) of each formula & a brief description of what each argument does. From this box you can press the Helkp option to open the Helpfiles whihc may help you understand more.

    In this case, the formula is checking if the left 3 characters = "OFD" because this was common to both rates that charged $260 & should show up in the left column. If the left 3 characters match, it spits out $260, if they don't it checks the "if false" part of the formula steps up to play. the "if false" part then completes a vlookup like your original email.


    hth
    Rob

  6. #6
    Forum Contributor
    Join Date
    02-04-2008
    MS-Off Ver
    Microsoft Office 2007
    Posts
    261
    Thanks Rob,
    Its Working Now.

    Thanks,
    Akbar

  7. #7
    Forum Contributor
    Join Date
    02-04-2008
    MS-Off Ver
    Microsoft Office 2007
    Posts
    261
    Dear Rob,

    Thers's one more problem happening around,here in this drop down menu i'm foced to put a value in that,if the menu is empty it is giving a N/A error,is there any way to rectify that.

    Thanks In Advance,
    Akbar

  8. #8
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243
    hi Akbar,

    I don't know how many rows of info you'll have, but the following minimises the amount of calculation that the file has to do by separating the formulae into 2 cells.

    Insert a new column between col C & col D, this becomes the new column D (& could, for example, be called the Error check column), in the new cell D5 type
    Please Login or Register  to view this content.
    now in the original D5 which has become Column E5 type
    Please Login or Register  to view this content.
    .

    hth
    Rob

  9. #9
    Forum Contributor
    Join Date
    02-04-2008
    MS-Off Ver
    Microsoft Office 2007
    Posts
    261
    Thanks Rob,


    Regards,
    Akbar

+ 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. How does this code output the coefficients of a trendline?
    By gshock in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-13-2010, 05:54 PM
  2. Excel 2007 error when adding custom help file to user defined function
    By sabotuer99 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-04-2009, 01:10 AM
  3. Modify a Function to add an extra condition
    By King_Quake in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-03-2008, 04:32 PM
  4. Link together different cells in specific order?
    By Sandman4432 in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 01-03-2008, 05:01 AM
  5. Analysis Toolpak Function XIRR and VBA - XL 2007
    By rvExcelNewTip in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-02-2007, 04:35 AM

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