Excluding Blank cells in array formula - #N/A error

drewber

New Member
Joined
Sep 23, 2021
Messages
10
Office Version
  1. 365
Platform
  1. Windows
Suppose I am wanting to assign points to the completion of my kids chores. As I go through the chores I can rate whether the fully completed chore "Y", Partially completed "P", did not complete "N", or if chore is not assigned to them or not applicable "B"...I'd rather just leave this blank and not enter any letter at all for blank.

I've assigned points to each in letter in A2, B2 section. Y=1 point N=0 points P=0.5 points B has no point value....which is where the #N/A error is coming from.

In researching this type of calculation, the formula that made most sense to me was: =(SUM(INDEX($B$2:$B$5,MATCH($E$7:$E$15,$A$2:$A$5,0)))). If there is a different way to calculate, I'm open to suggestions.

This is actually for a work project where I'll have dozens of elements to rate with Y, N, P or leave blank, then get an a point score or average of points for their tasks. Hoping this all makes sense.

Book1.xlsx
ABCDEFG
1Scores:
2Y1
3N0
4B
5P0.5JimmyAlanSusan
6CHORES
7Completed homeworknyy
8Washed & Dried Dishesppb
9Mowed yard & used weedwhackerypn
10Cleaned RoomByy
11Washed Caryb
12
13
14
15
16POINTS#N/A#N/A#N/A
Sheet1
Cell Formulas
RangeFormula
E16:G16E16=(SUM(INDEX($B$2:$B$5,MATCH($E$7:$E$15,$A$2:$A$5,0))))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E6:G16Cell Value="N"textNO
Cells with Data Validation
CellAllowCriteria
E6:G6List=$A$2:$A$5
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
There is any number of ways to calculate this. xlookups work too. Add the iferror function:

MrExcelPlayground11.xlsx
ABCDEFG
1Scores:
2Y1
3N0
4B
5P0.5JimmyAlanSusan
6CHORES
7Completed homeworknyy
8Washed & Dried Dishesppb
9Mowed yard & used weedwhackerypn
10Cleaned RoomByy
11Washed Caryb
12
13
14
15
16POINTS2.532
Sheet23
Cell Formulas
RangeFormula
E16:G16E16=(SUM(IFERROR(INDEX($B$2:$B$5,MATCH(E7:E15,$A$2:$A$5,0)),0)))
 
Upvote 0

Forum statistics

Threads
1,215,068
Messages
6,122,950
Members
449,095
Latest member
nmaske

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top