I have a pricing table with three rows at the bottom for optional products. They aren't always included - when they are, the quantity by month is also populated. I'm using a SUM (VLOOKUP) formula to look up the prices for each asset, then multiply by the quantities for a given month to return a monthly subtotal in Row 12. As you can see in my sheet, if cells A9-A11 are blank, the formula returns #N/A.
How do I tell Excel to ignore the blanks in rows 9-11?
How do I tell Excel to ignore the blanks in rows 9-11?
SF Practice Operating Model.xlsx | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | Asset | Mon. 1 | Mon. 2 | Mon. 3 | ||
2 | Asset #1 | 3 | 3 | 3 | ||
3 | Asset #2 | 4 | 4 | 4 | ||
4 | Asset #3 | 4 | 4 | 4 | ||
5 | Asset #4 | 7 | 5 | 7 | ||
6 | Asset #5 | 0 | 0 | 0 | ||
7 | Asset #6 | 0 | 5 | 5 | ||
8 | Asset #7 | 4 | 0 | 0 | ||
9 | ||||||
10 | ||||||
11 | ||||||
12 | Total Cost | #N/A | #N/A | #N/A | ||
13 | ||||||
14 | Cost Table | Cost | ||||
15 | Asset #1 | 10 | ||||
16 | Asset #2 | 15 | ||||
17 | Asset #3 | 23 | ||||
18 | Asset #4 | 14 | ||||
19 | Asset #5 | 19 | ||||
20 | Asset #6 | 15 | ||||
21 | Asset #7 | 4 | ||||
22 | Asset #8 | 10 | ||||
23 | Asset #9 | 6 | ||||
24 | Asset #10 | 13 | ||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B12:D12 | B12 | =SUM(VLOOKUP($A$2:$A$11,$A$15:$B$24,2,FALSE)*$B2:B11) |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
A9:A11 | List | =$A$22:$A$24 |