Vlookup In Microsoft Excel.

free web hosting
Free Web Hosting > Computers & Tech > Operating Systems > Windows (All Versions)

Vlookup In Microsoft Excel.

Chesso
I'm doing a task for an Assignment in Microsoft Excel.

The material isn't overly helpful and nor is there teachers lol......


The biggest problem I am facing now is working with the VLOOKUP function and what information they want.

I have been asked to use the VLOOKUP function, to the best of my understanding to produce a percentage for calculating a discount on a fee for materials based on a commencement date and paid date.

So for example, a person's material commences on 9th of september (they display it in excel as 9 Sep which excel converts to a formatted date) and they paid on 1 Sep, if there is less than a 7 day difference then there is no discount, if greater than 14 5%, if greater than 22 than 8% etc.

So basically the earlier they pay, the bigger discount they recieve.

But the VLOOKUP examples they provide just don't make sense to me, like this one:

=VLOOKUP(B5,$A$13:$B$19,2)

But they are only working with 1 cell, I have a commencement and paid date that need to be worked with, how can I fit this in?

Basically I need to find out how many days difference there is between commencement and paid dates, and refer to the lookup table to get a discount percentage from the second column.

Any help is greatly appreciated, I have been stuck with this task for quite awhile sad.gif.

 

 

 


Reply

Jimmy89
I have done something similar with income taxes, but the basic principles are the same, so it should work. Using the function you gave earlier

=VLOOKUP(B5$A$14:$B$19,2)

this would be how it would work

in the location B5 is your lookup value, so in other words, how many days before the material commences did they pay (5 days, 6 days etc)
in the location A14 to B19 you will have a two column selection, which in one column would have the days (14, 22 etc) and the other column would have the percentages (0%, 5%, 8% etc).

The 2 in this case is the column that will be used to give the result, in your case would be 2, because the percentages are in the 2nd column.

I have attached a simple version of what I have explained here for you to have a look at.

Hopefully this is helpful, if you need anything else explained, please ask!
-jimmy

Reply

Chesso
That would be fine, but the problem remains of how to extract the difference in days between commencement date and start date cells, as they vary for each persons entry.

Reply

dserban

Hi Chesso,

It's not very clear from your description what your objective is, but based on a pure guess I would say you need to convert the two columns you are working with into one column by either:
- concatenating the two dates into something like 2007013120070731
- computing the difference in days between the two dates

Once you have reached that stage you need to apply the VLOOKUP function correctly. I will show you how to do that because most people I have worked with are confused on how to use this function correctly.

Here is a simple example setup of an Excel file along with instructions on how to make the column selections when you use VLOOKUP:





After you clicked inside the Table_array text box, you need to select both coulumns A and B by first clicking the column header A, keeping the mouse button down, then moving the cursor over column B and releasing the mouse button.
I find that it's here that most people get confused.
Also, make sure that Range_lookup = FALSE, otherwise you get unpredictable results.

 

 

 


Reply

Jimmy89
that shouldn't be too hard! because excel is american, you have to go by their conventions, so by that todays date is actually the 7/29/07 where we would say its the 29/7/07.

So, if you put the 'commencement day' in column A, cell 2 and the 'pay day' in column B cell 2, then go A2-B2, you should get your difference in days.

The larger day has to always be first, otherwise you are going to end up with negative values, which would mean they payed after the course started! tongue.gif

Attached is a modified copy of the previous file, with paying and commencement days to work out discount percentages!
-jimmy

Reply

dserban
For computing the difference in days between two dates, you can use the Excel function DATEDIF, one of the tutorials that shows you how is "Calculating an age between two dates using the DATEDIF function":

http://www.meadinkent.co.uk/xl_birthday.htm

Reply

Jimmy89
I tried the DATEDIF function in excel 2007 and it didn't work, not sure if they don't use it anymore in the new version or if i was entering it wrong!

Reply

Chesso
Thanks dserban but I rarely use wizards, I'm a programmer so am used to writing out functions in a more direct format.

Thanks, I'll test out a few things with the dates and see if it works, I tried incorporating like A2-B2 into the actual VLOOKUP but I got like 0.05 and things like that, instead of 0%, 5% etc.

DATEDIF using "d" as formatter works, but it still gives me like 0.05 for some reason.

Reply

Jimmy89
if you got 0.05 that means that you got the function right, but because you have the cell format set as a percentage value, as 5% is actually 0.05 thats what will show up in a cell thats not 'percentage' formated! Format the cell that is showing 0.05 and you will see percentage values!

The file I attached in post #5 should be working properly if you need a reference!
-jimmy

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

Recent Queries:-
  1. vlookup days in dates - 0.50 hr back. (1)
  2. vlookup using dates - 1.28 hr back. (1)
  3. what is vlookup - 9.63 hr back. (1)
  4. excel assignment using vlookup - 16.65 hr back. (1)
  5. free advance excel 2007 manual - 30.45 hr back. (1)
  6. free download microsoft office excel formulas books - 53.38 hr back. (1)
  7. calculate percentage using vlookup function - 57.28 hr back. (1)
  8. microsoft excel 2007 vlookup - 66.03 hr back. (1)
  9. how to make vlookup in excel - 69.31 hr back. (1)
  10. vlookup days - 91.33 hr back. (1)
  11. vlookup between 2 dates - 95.30 hr back. (1)
  12. free download excel 2003 vlookup functions - 98.59 hr back. (1)
  13. ms excel for hr - 99.89 hr back. (1)
  14. free basic knowledge of ms excel v lookup - 144.27 hr back. (1)
Similar Topics

Keywords : vlookup, microsoft, excel,

  1. Microsoft Enlists Jerry Seinfeld
    News (2)
  2. Bill Gates To Leave Microsoft!
    :O (10)
    I just read this on a different forum! What do u think will happen to Microsoft now, i wonder how
    much he input into the decsions QUOTE The highlight of the event was Gates’ leaving video
    speculating on what might become of him once he steps down from his full time position at Microsoft.
    The video shows Gates attempting to be a star in rock, rap, movies and politics and features
    numerous Hollywood stars, as well as past and present US presidential candidates. The reality is
    that Gates will now concentrate his efforts on the Bill and Melinda Gates Foundation, which ....
  3. Administrator Account Problem In Microsoft Xp [solved]
    I have lost "my documents" (20)
    I have problem with administrator account ... I created new administrator account with this way:
    start /control panel /account users/new account and than I created a new one ; after this I turned
    off computer . I wanted to have two skypes turned on and my friend suggested me to do so... when I
    turned it on the second day , I coudn't enter with the first administrator ,and I entered with
    the administrator that I had created . I have lost my document folder.. please help me . how can I
    enter or can I enter with that first administrator account?? Can my documents be ....
  4. Microsoft Updates Your Copy Of Windows Without Your Consent
    (13)
    Microsoft has begun patching files on Windows XP and Vista without users' knowledge, even when
    the users have turned off auto-updates.
    http://www.windowssecrets.com/2007/09/13/0...t-users-consent Sounds like these were updates
    limited to updating Windows Update itself (I like the sound of "Windows Update is keeping its Update
    system up to date"). The question is, if these were just minor changes unrelated to Windows, just
    the Update application, why do it under the radar? The whole point of Windows Update is the clear
    transparency of what is going on. Microsoft i....
  5. Need Help Understanding Parts Of An Assignment (involves Microsoft Office).
    (9)
    QUOTE At the beginning of the term our staff is busy with enrolments. Students are given a
    discount if they pay the course fee in advance. The staff needs to calculate and record the course
    fees paid by students. To make this task easier for our staff you will need to design a template
    which can be re-used each term. Include appropriate headings. You should create and enter formulas
    to calculate the No. of Days paid in Advance, the Discount and the Course Fee Paid. Use a VLOOKUP
    function in your template to determine the discount rate to be used for the calcu....
  6. Outlook Requires Microsoft Outlook Express 4.01 Or Greater
    (0)
    Was trying to avoid this, but having worked with this user remotely for a few hours, I need another
    brain here to help out /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0"
    alt="biggrin.gif" /> The user was originally having problems sending emails using Outlook 2000
    because it said that it couldn't find the Windows Address Book. Well, we fixed that issue but
    now stumbled on another one. This one was most likely caused by changing the registry value to 0 for
    IsInstalled. The error he's getting now whenever he tries to run Outlook is: QUOTE ....
  7. TCPA/TCP A.k.a Microsoft Palladium....
    Who really knows what it is, and whats your opinion? (0)
    Ok everyone, I looked around here on astahost and found that this isn't a subject that seems to
    have been discussed at any real length, and it kinda surprised me. For one reason main reason,
    personal rights and open software development. Now I won't say that I know much about it yet
    but from what little I've read and researched on this subject I have found many places that say
    that if there is a bill passed in the USA: QUOTE In the USA there's a planed bill, the so
    called CBDPTA (Consumer Broadband and Digital Television Promotion Act). First it wa....
  8. Can Two System Share Microsoft Office
    eg. client run Excel from server (2)
    Dear all, I wanna share a copy of Microsoft office in more than two system. What I am think is,
    install microsoft Office in a Server. then other client system can run the application such Work
    and Excel remotely. So that, Office suit do not required to be installed in every client system. Is
    that possible? is there any other 3rd party software needed?....
  9. Microsoft Command Shell?
    (0)
    Today, I saw this on winbeta.org : Microsoft Command Shell Beta 1 Released to BetaPlace The code
    name of Microsoft Command Shell is Monad. This shell provide rich scripting support. It built on the
    .NET Framework and fully object-oriented. "It includes many concepts from traditional UNIX shells
    such as bash and ksh, delivers rich scripting support challenging languages like Perl and
    Python"!!!??? /rolleyes.gif' border='0' style='vertical-align:middle' alt='rolleyes.gif' />
    This Microsoft Command Shell (MSH) can be downloaded here http://beta.microsoft.com ....
  10. Microsoft Windows Longhorn
    (17)
    Has anybody heard about Microsoft's next generation of Windows? It's named Longhall, after
    the Longhall Pub under/near the main microsoft building or something like that. I saw it on the news
    last night, and it looks quite spiffy, but will be (as usual) full of bugs and viruses and stuff. I
    think it runs on a touch screen, and most of the functions looked similar/same, but they have given
    it a major cosmetic overhaul so stuff lights up when you touch it and other spoofy stuff.. Anyway, I
    tried to find out more about it, but it seems there's no info anywhere.....
  11. Microsoft Service Pack 2 Cd (free)
    Windows XP (17)
    For those who missed my post: http://www.astahost.com/index.php?act=ST&f...t=10#entry27941 For
    those who want a free CD copy of Service Pack 2 with Advanced Security Technologies (popup blocker
    and firewall) follow this link: http://www.microsoft.com/windowsxp/downloa...us/default.mspx I
    ordered mine about 3 months ago, received it in a within a week. ....
  12. When Did Microsoft Start?
    (7)
    this is one of my technology course questions, i really need help, when did it start?!....
  13. News: Winfs For Windows Xp?
    Microsoft is considering it. (1)
    Thursday 10 March appeared this in a computer new-paper: QUOTE Microsoft has said to the the
    website MicrosoftWatch that they're considering to make their future coming filesystem also
    compatible to Windows XP. Earlier the company had let known that Avalon and Indigo, the
    presentation- and communicationlayer of Longhorn, would be avaible for Windows XP and Windows server
    2003. WinFS is a special case, because the development of it takes so much time that it
    wouldn't be a part of Longhorn, that will appear at the end of 2006. The filesystem has to run
    on top....
  14. Microsoft Does It Again.
    what do you think of software parents ? (11)
    http://www.eweek.com/article2/0,1759,1767520,00.asp
    http://www.eweek.com/article2/0,1759,1730746,00.asp miscosft has filed a patent for the
    'IsNot' operator (thats the '!=' operator to c/c++/java programmers and ' '
    to visual basic porgrammers.) i sometimes the the news on ani-software parent sites. Microsoft
    also have patents like 1)the *nix sudo sommand (used in linux / unix for decades, but never in
    windows) 2) timed double clicking. im not against real patents for real inventions.. but you should
    NOT be able to patent prior art OR th....
  15. What If Microsoft........
    (11)
    Here's an idea. (more of a crazy dream, but its interesting) What if MS borrowed a MacOSX idea,
    and dropped there current OS.. just binned it. then, took a *BSD or GNU/Linux OS, but instad of
    using GNOME or KDE, ported the vurrently existing windowsXP Desktop Envodonment to run on Xorg-x11.
    They could build a portage free like what Gentoo uses, except with pre-compiled binaries. Now you
    would have an OS which looked and felt exactly like Windows, except running on a BSD or Linux Kenrel
    and libraries. Good bye securety issues and virus scanners, hello inherrant se....
  16. Future of Microsoft ?
    predictions on the future of microsoft ? (14)
    What does everyone think will happen to microsoft as Awareness of alternative operating systems
    becomes greater ? True, that MS has a very strong hold on the OS market, but even the giants
    fall.... remember IBM ? they were once the evil monopolisers.... but one day, somebidy cloned their
    bios, and they lost there hold on the hardware monopoly... How many people here have IBM PC's ?
    all of you... (except the mac users) and how many of you bought the computer from IBM ? or how many
    parts of your computer were made by ibm.... almost none of them. anyways... the way i....
  17. Microsoft media keyboard -- F keys on by default?
    (3)
    I have the MS media keyboard where you have volume controls, calculator, etc buttons on it. This
    new version also has secondary controls for the function keys. That's fine by the function keys
    are ALWAYS off by default which is an annoyance for me. It only requires me to press one key to
    turn it on but if I forget to do that and start pressing buttons, all sorts of programs start
    running and bad things start happening. How can I make them ON by default (like I have Num Lock on
    by default)?....

    1. Looking for vlookup, microsoft, excel,






*SIMILAR VIDEOS*
Searching Video's for vlookup, microsoft, excel,
advertisement




Vlookup In Microsoft Excel.