Formula: Multiply if...

Hi,


I have two tables. One contains a list of pre-defined IDs. The other one is for data entry where the user enters records row by row including an ID


I'm trying to figure out how to multiply two cells in a record, if the user enters one of the IDs that is listed in the other table.


Now one could use IF and OR to match these cells, but I can only match one cell to one cell. As the list of IDs has about 100 entries, it would be good if I could match a cell against a whole column like in SUMIF.


Any ideas?


User uploaded file

MacBook, OS X Mavericks (10.9), 1TB HD & 256 GB SSD inside

Posted on Nov 4, 2013 3:06 PM

Reply
5 replies

Nov 4, 2013 3:40 PM in response to papalapapp

hi papalappa,


Is this what you want?


=IF(ISERROR(VLOOKUP(B2,Table 1::A,1,FALSE)),"",C2×D2)

User uploaded file

It tries to look up the value in B from the table containing the ID's and if it can't find that value (gets an error) it puts a blank in the cell. If it does find the value in the list of IDs, it multiplies C x D.


I wasn't sure if that is exactly what you want because in your example there is no AAA in your list of IDs yet you still show a value in E.


SG

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.

Formula: Multiply if...

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