Numbers Lookup Function

I am trying to make an estimate spreadsheet for my dental implant office.

I have made two tables:

  1. Lookup table 1 with header and footer and cell B4 as the sum of column B. Column A cells are pop up cells with a list of items.
  2. Table 2 is Items and their price

In table 1 I am trying to put a lookup function in B2. My problem is that this formula is not carried on down column B as I try to add mot items.


How do I get this formula copied on down the column?



iMac OS X ver 10.9

Numbers Version 3


Both the lates Mavericks.


Thanks.


Derek


User uploaded file

iMac, OS X Mavericks (10.9)

Posted on Oct 28, 2013 4:48 AM

Reply
Question marked as ⚠️ Top-ranking reply

Posted on Oct 28, 2013 5:27 AM

Derek,


I would guess you selected a range for the lookup items which is not the WHOLE column(s)... like this. Here I selected a range, then added a row in the table "ItemList":

User uploaded file


Instead use a formula like this:

User uploaded file

In the table on the left:

B1=VLOOKUP(A1, ItemList::A:B, 2, 0)


In this case I clicked the lookup range as the whole columns A and B by clicking (and holding) on column A, then immediately dragging to column B

22 replies
Sort By: 
Question marked as ⚠️ Top-ranking reply

Oct 28, 2013 5:27 AM in response to Derekhandforth

Derek,


I would guess you selected a range for the lookup items which is not the WHOLE column(s)... like this. Here I selected a range, then added a row in the table "ItemList":

User uploaded file


Instead use a formula like this:

User uploaded file

In the table on the left:

B1=VLOOKUP(A1, ItemList::A:B, 2, 0)


In this case I clicked the lookup range as the whole columns A and B by clicking (and holding) on column A, then immediately dragging to column B

Reply

Oct 28, 2013 7:08 AM in response to Derekhandforth

Derek,


Unfortunately you example is ambiguous and I am not sure whether you are asking about filling the formula in cell B1 of the table on the left. If it is then SGIII in the previous post may have addressed how to fill down.


To reiterate that post to fill a formula down, select the cell (B1), copy, then click the column header (the letter "B") at the very top of the column), then paste.


Lookup has a one problem which is that you cannot specify exact match and will return the largest value when an exact match does not exist.


AND when the search for cell in column A is empty you will a error triangle.


I suggest using:

B1=IFERROR(VLOOKUP(A1,ItemList::A:B,2, 0),"")


this will address both problems:

User uploaded file

Reply

Oct 28, 2013 7:33 AM in response to Derekhandforth

What I am trying to do is to copy the lookup function as I add more rows. At the end of B2 I press return to add anothe row, but the formula from B1 is not copied down to the second and subsequent rows. I can drag the yellow dot down to fill the subsequent cells, but I want this down automatically.

I have tried the suggestion of selecting the formula in B2 then placing the cursor on B at the top and pasting. This brings up a red triangke error.

Reply

Oct 28, 2013 8:32 AM in response to Jerrold Green1

Jerry, I don't understand:

Sure, it can be made to work and starting a document from scratch you could use either, but they are both present for compatibility reasons.


SG. I suggested vlookup in the formula I posted earlier:

B1=IFERROR(VLOOKUP(A1,ItemList::A:B,2, 0),"")

Reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Numbers Lookup Function

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.