+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : Calculating number of units without vlookup

  1. #1
    Registered User
    Join Date
    01-29-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    4

    Calculating number of units without vlookup

    on sheet 6, of the spreadsheet, i have to calculate the number of units a course is. Now if the course code contains 3 then its 3 units, if its 6 its 6 units, if the course code is blank then the number of units should be blank. I cant seem to get a number value for the number of units without having to use vlookup. Any help would be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Calculating number of units without vlookup

    I don't really understand the question... perhaps you want to use SUMIF ?

    (a SUMIF will of course return 0 for blank... assuming 0 is never a valid result you could use a Custom Number Format of [=0]"";General to have 0 display/print as blank)

  3. #3
    Forum Contributor
    Join Date
    01-28-2010
    Location
    Riverside, CA
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: Calculating number of units without vlookup

    will the course have other numbers include the 3 or 6? or will it just be a cell with a 3 or 6 or blank? could you give us an example of what the cell would like?
    Happy Excel'ing!

  4. #4
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Calculating number of units without vlookup

    I cant seem to get a number value for the number of units without having to use vlookup.
    Not sure that I understand the question fully, but other than a different look up formula, such as index/match, there is no other way to return a matching value for a given course. (Now becomes a matter of formula preference)

    Anyway, your existing formula needs to use absolute references to the table. Note the use of the $ symbol in the range references.

    =IF(A2="","",VLOOKUP(A2,$A$28:$B$33,2))
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  5. #5
    Registered User
    Join Date
    01-29-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Calculating number of units without vlookup

    thanks for the help, ok what i basically mean is that that it can either be 3, 6, or blank. So if CS 1TA3 is blank then the number of units should be blank. I want to get the number of units without using Vlookup. I think this is possible if you look at the course code 1ta3 means 3 units, 1ta6 would mean 6 units, and blank would mean blank. I just cant seem to figure out a formula for this.

  6. #6
    Valued Forum Contributor
    Join Date
    08-23-2009
    Location
    Hampshire, UK
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    328

    Re: Calculating number of units without vlookup

    How about
    Please Login or Register  to view this content.
    in B2 and copied down.

    BTW if you want your Semester Average to display as a percentage followed by the grade you could use
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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