Lookup formula

Hi,
I tried using the lookup formula to create a list of students names that have the same problem. Unfortunately, the formula only gave me the last value that qualified.
=LOOKUP("B", G2:G23, B2:B23)
This is what I used. Is there someway I can change this to get a list of all the students that answered B except for the last one in my data?

Hello writrrgrrrl,
Here's one way to answer your question, I believe. In the example below, you enter the grade you wish to examine in the top table, the second table is scanned for instances of that grade and a list of students with that grade will be produced in the bottom table. I needed to add an auxiliary column in your grade table in which to count the instances, and an auxiliary table to list the matches.
Here are the formulas in case you want to give it a try...
Fill the Count column with: =IF(INDIRECT("B"&ROW())=SearchScore :: A$2, COUNTIF(INDIRECT("$B$1:B"&ROW()),SearchScore :: A$2), "")
Fill the Answered Score Requested column with: =IF(COUNT(Names And Scores :: C2:C11)>=ROW()-1, INDIRECT("Names And Scores :: A"&(MATCH(ROW()-1,Names And Scores :: C1:C11))), "")
Let me know if you have any questions.
Just curious; you don't happen to teach English Composition do you?
Jerry

Similar Messages

  • Fuzzy Lookup Formula/Logic

    Could someone from the dev team please share as much details as you're comfortable with regarding the
    formula or logic used to calculate the similarity for a fuzzy lookup match?

    Hi Andres,
    Fuzzy Lookup matches input records that are "dirty" (because of misspellings, truncations, missing or inserted tokens, null fields, unexpected abbreviations, and other irregularities) with clean records in a reference table. Fuzzy Lookup can help
    find data in large tables when your data has a corrupt or incomplete string key.
    Fuzzy Lookup uses the Error-Tolerant Index (ETI) to find matching rows in the reference table. Each record in the reference table is broken up into words (also known as tokens), and the ETI keeps track of all the places in the reference table where a particular
    token occurs.
    For moe details about Fuzzy Lookup, please refer to the following documents:
    Fuzzy Lookup and Fuzzy Grouping in SQL Server  Integration Services 2005
    Using Fuzzy Lookup Transformations in SQL Server Integration Services
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Column lookup formulas

    How do I build a formula that will search for a text string in a column and if true add the numerical value in the cell to the left to a total. There may be more than one instance in the column for the string.
    Eample on a fishing trip
    Item
    Cost
    Paid by
    Lunch meat
    $5.00
    John
    Bread
    $2.95
    Sam
    Gas
    $30.00
    John
    Beer
    $10.00
    George
    Bait
    $20.00
    Sam
    So what I need to do is create a total for each person as we go along on the trip.
    Any help would be appreciated.

    SF,
    SUMIF calculates a conditional sum. It allows you to specify a range of cells that you want to add-up, but only where a certain condition is met. A simple example would be if you had some figures in column A and you want to add up (sum) all the ones that are greater than 1. You could write:
    =SUMIF(A, ">1")
    In this case, if A contains {-1, 0, 2, 1, 5} the result would be 7.
    In the more general case, the numbers to be summed may be in a different column than the test values. Let's say that you want to sum all the values in column A where column B contains the text "OK". You would write:
    =SUMIF(B, "OK", A), where B points to the list of test values. "OK" is the condition we are testing for, and A is the place where the values to be summed are found.
    In this case, if A contains {-1, 0, 2, 1, 5} and B contains {"Low", "Low", "OK", "Low", "OK"}, the result would be 7.
    You can see the formal Function description in the Formulas and Functions Help guide available from the Help menu.
    Jerry

  • Parent child hierarchy and measure using lookup

    Hi,
    I'm using OBIEE 11.1.1.5 and I have an issue with a parent child hierarchy, which is setup like case 4 in this example . When I create a simple analysis using the hierarchy and a simple measure, it works fine. But when I try to use a calculated measure using a lookup formula, I get the following error:
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 46036] Internal Assertion: Condition pTableRef->GetLeftTable() && pTableRef->GetLeftTable()->IsTableReference(), file server/Query/Optimizer/ServiceInterfaceMgr/Src/SQOIDriveJoinGenerator.cpp, line 568. (HY000)
    Does anyone know how to get past this error?
    Thanks,
    Mihai

    Hi,
    I'm using OBIEE 11.1.1.5 and I have an issue with a parent child hierarchy, which is setup like case 4 in this example . When I create a simple analysis using the hierarchy and a simple measure, it works fine. But when I try to use a calculated measure using a lookup formula, I get the following error:
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 46036] Internal Assertion: Condition pTableRef->GetLeftTable() && pTableRef->GetLeftTable()->IsTableReference(), file server/Query/Optimizer/ServiceInterfaceMgr/Src/SQOIDriveJoinGenerator.cpp, line 568. (HY000)
    Does anyone know how to get past this error?
    Thanks,
    Mihai

  • Is it possible to apply conditional formatting to a cell (or range) based upon a LOOKUP query to cell values in another sheet.? I want to alter the formatting (i.e., text and/or cell background color), but not cell content.

    Is it possible to apply conditional formatting to a cell (or range) based upon a LOOKUP query to cell values in another sheet.?
    I want to alter the formatting (i.e., text and/or cell background color), but not the content, of the target cell(s).

    Hi Tom,
    Your LOOKUP formula will return a value that it finds in the "other" table. That value can be used in conditional highlighting rules. (Numbers 3 calls it conditional highlighting, not conditional formatting. Just to keep us awake, I guess, but it works the same).
    Please explain what you are trying to do.
    Regards,
    Ian.

  • The formula contains a syntax error

    Hi i keep getting the following message errors The formula contains a syntax error. I have working with lookup formula so when i change hours is changes the price. Just need to get a total for hours x number of people x price cant seem to get there.
    Thanks Danny

    It's hard to say from your screenshot, but it appears you are either attempting to make a cell reference itself, or the reference is empty.
    There is no need for the parentheses since algebraic hierarchy will result in the same answer.
    Capture the row and column data, post a more descriptive screenshot, or describe the required calculation in greater detail.

  • VLookup formula contains reference error:

    I am using a spreadsheet to grade playing tests based on a series of rubrics.  I have a cell that adds up the total of points the student earns for the test.  In another table, I have a chart that converts the rubric score to a 100 point based scale to enter in my gradebook.  I am trying to write a formula that looks at the cell where the total number of points is and then looks at the table and matches that total to the converted grade.  (Example: student receives a total of 35 points based on the rubrics - it converts to an 80 for the gradebook). I  have the following formula:
    =VLOOKUP(N39,Table 2 :: A1:A51,Table 2 :: B1:B51,FALSE)
    N39 has a SUM formula that adds up the rubric points
    Table 2 column A has the rubric grades
    Table 2 column B has the converted grades
    I put FALSE, as I need an exact match
    I am getting an error: "the formula contains an invalid reference"  I'm not used to using this formula and I just can't figure out what I am doing wrong.  I would like to get this working so I can send the test form to the students via e-mail and not kill as many trees.  Suggestions would be welcome

    Hi cslviola,
    I see two issues here.
    You wrote:
    "N39 has a SUM formula that adds up the rubric points
    Table 2 column A has the rubric grades
    Table 2 column B has the converted grades
    I put FALSE, as I need an exact match"
    Does your lookup table include every possible value of the sum of the rubric grades?
    A "close match" in these functions means "the largest value that is less than or equal to the search value."
    If every possible search value is included in column a of the lookup table, then a close match will alway be a match to the value that is equal to the search value (ie. an exact match).
    If there are possible rubric point sums that are not included in the table, then a function requiring an exact match will return an error if he search vaue (the rubric point sum) is one of the values mising from column A of the Lookup table. Unless that is your expected result, you do not need (and do not want) an exact match.
    Regarding your formula:
    I see some confusion here between the syntax requirements of LOOKUP and those of VLOOKUP.
    =VLOOKUP(N39,Table 2 :: A1:A51,Table 2 :: B1:B51,FALSE)
    Here's the LOOKUP syntax:
    LOOKUP(search-for, search-where, result-values)
    As a LOOKUP formula, your formula above would be:
    =LOOKUP(N39,Table 2::A1:A51,Table 2::B1:B51)
    LOOKUP always requires only a close match, which is the better choice for your issue.
    The syntax for VLOOKUP is a bit different:
    VLOOKUP(search-for, columns-range, return-column, close-match)
    search-for is the same as for LOOKUP, but the next argument is different.
    columns range must specify all of the columns and rows making up the lookup table. In your case, that's columns A and B of Table 2. The search column is always the leftmost column of the Lookup table.
    return column is specified as the number corresponding to the position if the return column in the Lookup table. For your case, the return column is column 2 (NOT because it is column B, but because it is the second column of the Lookup table. If your Lookup table consisted of cells J1:K51, the return column (K) would still be column 2)
    close value, if set as FALSE, requires an exact match of the search value and the value it finds in the search column; set to TRUE, or omitted from the formula means a close match (as defined above) is aceptable.
    Your formula as a VLOOKUP formula, would look like this:
    =VLOOKUP(N39,Table 2::A1:B51,2,FALSE)   (requiring an exact match)
    OR
    =VLOOKUP(N39,Table 2::A1:B51,2)   (requiring a close match, as defined above)
    Personally, I'd go for the LOOKUP version here.
    Regards,
    Barry

  • Validation formula via Documents To Go - Office Suite

    I created excel spreadsheet via my PC that includes a validation formula. When I copy the spreadsheet over to my iPad  the validation formula is not present.  The lookup formulas I also used are present. I'm using Documents To Go® - Office Suite, any idea how to add validation?

    Contact support for that app: http://support.dataviz.com/support_index.html

  • Formula to grab a value out of a long list?

    Hello!
    I’m trying to set up a formula in order to select one value out of a bunch of cells (about 200).
    The cells in column A contain each one account number – e. g.: 6815
    The cells in column B contain each a definition for the corresponding account number of column A – e. g.: “Office Supplies”
    The formula is supposed to gather both expressions in order to unit and display them in another cell, let’s say “C201”, using something like
    ->  =A1&" "&B1
    a) Now, how do I set up things in order to connect my formula with an array? …assuming the array would contain the 200 cells (A1 -> A200) and (B1 -> B200), but written in such a sleek maner, in terms of syntax, so the formula remains easy to update and easy to process.
    b) If I add new accounts (e.g. A201, …) and new corresponding account definitions (e.g. B201…), can I have my formula growing dynamically with the added cells?
    c) And most important, what do I have to insert into the formula in order to set up a sort of text-completion-function?
    - e. g.: typing “6815” into a C-cell brings up the whole string “6815 Office Supplies”
    - or : typing “Office Supplies” into a C-cell brings up the whole string “6815 Office Supplies”
    (each new character typed into the cell reduces the amount of matching-expressions displayed in or next to the cell in a list, so one can choose more quickly)
    d) on top (regarding c), the selecting-function would be arrow-keys-sensitive.
    I know it sounds a little like some sort of FILEMAKER-abracadabra, but I’m wondering if all this also can be achieved in NUMBERS.
    Any hints would be much appreciated.
    G

    HI gestyle,
    e) correct. " annual picnic" in this case would be generated by a lookup formula, which 2014 would be entered text. The entered text would immediately replace the formula in the cell, leaving no way to retrieve the description text.
    ee) sort of. The formula (in A2, for example) would need to get the entered text (also in A2) to use as a search key for the descriptive text (on another table), then return it to cell A2. Until text was entered in A2, there is a self reference issue. The issue disappears as soon as text is entered in the cell, but only because the formula itself disappears at that instant.
    If the only purpose for having the full string ( 2014 Annual Picnic ) in a single cell is that it 'looks nice', I don't see a solution. If the full string needs to be in a single cell so that it can be used in further calculations, then this might fill the need:
    Accts table is unchanged.
    Main-1 is a duplicate of Main, with new formulas. Both formulas are entered in row 2, then filled down to row 6.
    Column A contains entered text (the acount number)
    B2: =IF(LEN(A)<1,"",IFERROR(" "&VLOOKUP(A,Accts :: A:B,2,FALSE),"<not found>"))
    This is a reduced version of the formula in C2 of Main in my earlier post. It returns the account description associated with the account No. in column A. I've left the  " "&  portion in the formula to attach a space to the beginning of the description for some separation between the right-aligned acct No. in A and the name in B (compare with the same information in the Accts table).
    C2: =A&B
    This concatenates the contents of A and the contents of B into the full string seen in column C. As the string is already displayed (in two cells) in columns A and B, this column could be hidden without affecting its ability to be referenced by a formula needing the full string.
    ef) With Numbers '09 (v2.x), a preference setting (Show auto-completion list in Table columns) would enable 'suggestions' for auto completion based on entries made in cells above the current cell and in the same column. Numbers 3 is a complete rewrite of the application, and several features have not (yet) made it into the new code. Provide Numbers Feedback, using the menu item of that name in the Numbers menu if you are using v3, and would find this feature useful.
    eg) Correct for Numbers '09, and I suspect true for Numbers 3 as well.
    You could investigate the use of a cell formatted as a Slider in conjunction with a Lookup table to accoplish this. There are some limitations: Sliders will generate sequential number values only, and do not allow for gaps in the series of numbers. You may find it difficult (I do) to select a specific number from a set of 200 using a slider.
    Stepper formatted cells are similar to Sliders, but step through the list of numeric values through the user clicking (or clicking and holding) one of a pair of up and down triangles. Each step is discrete, making it easier to hit a specific nuber, but each change also triggers a recalculation of the table. Stepping through a list of 250 values in one cell on a small table (Main-1) by holding the mouse button down on the up arrow took 75 seconds—a level of tedium similar to that of a 250 item pop-up menu. Provide Numbers Feedback.
    Regards,
    Barry

  • How to prevent manual input to automated cells?

    I have many cells that get their values from a result in another table. By clicking on the cell and typing, the lookup formula is overridden. Is there a way to lock out manual input to a cell that automatically gets its value from somewhere else?
    BTW, Numbers is SO much nicer to use than Excel. Bravo to Apple!

    This is kind of what I did. What I have done is take the Numbers template for a personal budget and modified it so as to learn the ins and outs of the program and to have something useful at the end. Some of the expenses are created by entering a list of expenses by month that is then collected in another table to add up the entire budget. I don't want the wife to be able to enter into those cells that look up their info on another table. Even though a "$0" shows to let her know that it gets info elsewhere, it can be clicked on and data entered directly. It also wipes out the formula/function that was there in the first place. That pretty much wrecks the table at that point. It would be nice to be able to lock those cells out for direct entry.

  • Using the IF function with a range of numbers

    I am working with the IF function and trying to get it to work "if" the number I'm examining is within a range of numbers.
    Example:
    If a wigit costs between $1000 and $1999, then a discount of $100 is given
    If a wigit costs between $2000 and $2999, then a discount of $150 is given
    If a wigit costs between $3000 and $3999, then a discount of $225 is given
    And so on.
    If cell A1 always holds the current cost of the wigit being sold.
    cell B1,B2,B3 holds the value of the discount values respectively.
    In cell C1 I would like to return what the current discount value is to be given for the wigit price in cell A1?
    How do I do this using the IF function or is there another way?
    Thanks,
    Ryan

    HI Ryan,
    In this post you have, except for the issue noted by Badunit, the basis for the discount table described by Wayne:
    I'm trying to devise a way of knowing what Cash Card a customer will receive depending on the amount of the purchase, based on the following table:
    $0         to $999 purchase         =      $50 Cash Card
    $1,000 to $1,999 purchase     =     $100 Cash Card
    $2,000 to $2,999 purchase      =     $200 Cash Card
    $3,000 to $3,999 purchase      =      $300 Cash Card
    $4,000 to $4,999 purchase      =      $400 Cash Card
    $5,000 to $5,999 purchase      =     $550 Cash Card
    $6,000 to $6,999 purchase     =      $700 Cash Card
    $7,000 to $7,999 purchase      =     $850 Cash Card
    $8,000 to $8,999 purchase     =      $1,000 Cash Card
    $9,000 to $9,999 purchase     =     $1,200 Cash Card
    $10,000 to   UP   purchase     =     $1,500 Cash Card 
    To take care of the issue noted by Badunit, you need to revise the top line to state the minimum purchase necessary to earn a cash card, then add a line above that to handle purchases under that amount. I've arbitrarily chosen a $500 minimum, which results in these two lines:
    $0             to $499 purchase        =      $0 Cash Card
    $500         to $999 purchase         =      $50 Cash Card
    To write this as Wayne's table, you need to remove all of the text (including the $ currency markers), the top end of each range, and the = sign. What you're left with is two columns of numbers: The bottom number of each range of values, and the number telling the dollar amount of the cash card for that range. Here's your table, edited to make it work with LOOKUP:
    Here is a second table (Main), containing only the labels and the two cells involved in the calculation of the cash card amount. The Purchase amount is the amount used in your example. The Cash Card amount is produced by the LOOKUP formula below the image.
    Purchase price is in cell B1 of the table "Main". The LOOKUP formula is in B2:
    B2: =LOOKUP(B1,CC Amt :: A,CC Amt :: B)
    LOOKUP acts essentially as you request in your post containing the iPad image with the time shown as 1:46. But it takes a much simpler approach.
    Here's the syntax:
    LOOKUP(search-for,search-where,return-from)
    LOOKUP gets the search-for value (2535) from cell B1.
    It looks in column A of the table "CC Amt" for the largest value less than or equal to the search-for value, and finds 2000.
    It returns the value from the same line of column B (200).
    Below are two more examples. Main-2 and Main-3 are copies of the Main table. Both contain exactly the same formula as Main, but have had a different Purchase price amount entered. LOOKUP uses the same CC Amt table as is used above, and returns the appropriate Cash Card value for each of the two new amounts:
    You may, as implied in your 1:46 post, use a pair of cells to calculate the Cash Card amount for each widget in the purchase, then total the Cash Card amounts, or you may use a single pair of cells, one containing the total purchase amount, the other containing the Cash Card amount due for that total. That choice is yours. The formula is the same for either case.
    Regards,
    Barry

  • SQL Workshop - SQL Commands - Saved SQL:  Saved set of commands

    Has any thought been given to this, or perhaps this has already been done.....
    A saved set of SQL commands as a template
    For example, when I'm in Excel and I start writing a lookup formula, a guide appears below the cell, reminding me of the format of what comes next. When I know what I'm doing, I simply ignore the guide. When I don't know what I'm doing, the guide is helpful - even linkable to more information.
    Perhaps there are too many variables here to do that....
    In the meantime, I'm creating my own 'set' as I learn - perhaps that's even better.
    Marion in NY

    Hi Kirsten,
    this could be controlled at the database level whereby you create a schema that doesn't own the objects your users are querying but has the appropriate grants and privileges made to it and synonyms or views created to represent the objects. This schema then becomes the parsing schema for the workspace you let your users use. This wont prevent them from creating update statements, but at the database level it will not allow them to be executed.
    Regards
    Andre

  • Function that returns currently selected cell address or column

    Is there a function that returns the address (or just the column) of the currently selected cell? Simply put, something like =selectedcolumn.
    Background: I want to display help text in a cell, and I want that help text to change according to which cell (actually, which column) the user has selected. I have put the help texts in a hidden row. They take up too much space to be displayed all the time. I want one cell to contain the help text of the column of the currently selected cell.
    Trying to not use Filemaker for this project if possible
    Thanks for any help /Matt

    The Numbers method, using comments as Barry showed, is probably the best method.  An alternate method which is more complex would be to use an Applescript running in the background.  The Applescript can scan in the background for which cell/column is currently selected and write that cell/column address into a cell in your table. A formula in your table (most likely a lookup formula) can use that address to serve up the correct help text in a diffrerent cell in the table or in another table.
    Some problems with this methodare
    The script is not part of the document. It is a separate entity.
    The script must be started manually. It will not automatically start when the Numbers document is opened.
    If the Numbers document is to be used on other Macs, each would also need the script installed.

  • Most recent date with two other conditions met

    Ok, so I'm sure somebody is going to suggest that I do a search first before posting on here.  So let me assure you, that I have exhausted all search possibilities that I could possibly think of before registering to post on here.  I've read a lot of good suggestions that got me just as far as I was getting on my own, because I couldn't find any posts of somebody asking exactly what I'm looking to do.  I have tried quite close to 100 different formulas without achieving the desired results.
    I'm a pilot, and I track all of my flights myself in a very well organized(I think so ) Numbers spreadsheet that I've been tweaking and perfecting over the past few years.  I have created plenty of formulas in it, and they all work great...except ONE.
    I've created a simplified version of the columns I am trying to match specific conditions with.  Essentially, I need the formula to return the most recent date(column 1), that is completed during a night time flight status(column 2), that is equal to or greater than 1.0 flight hours(column 3).
    As you can see, by evaluating the table below, the correct formula should return to me:        8-4-13
    The closest I've come to getting the correct results was with a "LOOKUP" formula, but I could not figure out how to get it to properly assess whether it was equal to or greater than 1.0 hours of flight, thus returning me the wrong date EVERYTIME(the most recent night flight period).
    I'm sure I've gotten close at least a few times, but I need some help getting this final formula figured out.  I really appreciate anybody's input on this.
    Date
    Flight Status
    Flight Hours
    8-1-13
    D
    2.4
    8-2-13
    N
    3.0
    8-3-13
    N
    1.1
    8-4-13
    N
    1.3
    8-5-13
    D
    2.2
    8-6-13
    N
    0.5
    8-7-13
    D
    1.1

    This may work and requires and extra column in your Data entry table (the one you provided in your post).  You can hide this new column.
    D2=IF(AND(C2>=1, B2="N"), A2, "")
    select D2 and fill down as needed.
    The table on the right is a summary table and is set up as follows:
    B2=MAX(Data :: D)
    I hope this is helpful

  • X2008 Bugs and formatting wish list

    Post Author: solver
    CA Forum: Xcelsius and Live Office
    I have been testing out the X2008 trial version for a few days now. I found it more efficient to use than 4.5, but I've encountered two bugs (or maybe these are simply default settings I need to change somewhere, either in excel or in xcelsius):- sorting numbers in the columns of a List View component is done based on a string sequence, not the based on the numerical value (e.g. 9 is considered higher on the list than 19)- Cell values that are set to BLANK with a formula in excel (e.g.  if(A1=3,2,"") ) are interpreted correctly as missing values in the line plot on the canvas, but show up as 0 values in the .swf file. (I've tried using NA() instead of "", but that's not recognized by X2008)Both of these bugs are substantial, because they interfere with the fundamental message the dashboard is supposed to convey. Please let me know if there is any way of working around these for now, so that I can show some prototype dashboards to colleagues.I've also run into two formatting limitations that can generally be handled with some working around, but expanded formatting capabilities would be nice to have: - ability to format individual columns of a List View component- more shapes and drawing options so I can set up a context diagrams for the elements of the dashboardCheers,solver      

    Post Author: solver
    CA Forum: Xcelsius and Live Office
    solver:- Cell values that are set to BLANK with a formula in excel (e.g.  if(A1=3,2,"") ) are interpreted correctly as missing values in the line plot on the canvas, but show up as 0 values in the .swf file. (I've tried using NA() instead of "", but that's not recognized by X2008) Note: the full lookup formulas I use are  =IF(INDEX(I12:I57,'Display Parameters'!$F$37)<>"",INDEX(I12:I57,'Display Parameters'!$F$37)*$D$4,""). These worked fine in 4.5, and look correct on the canvas in X2008. However, at runtime all of the "" cells are replaced by 0.solver  

Maybe you are looking for