SUMIF(INDIRECT to ignore #N/A

jimmisavage

Board Regular
Joined
Jun 28, 2017
Messages
130
Good morning,
I'm struggling to get my formula to work. I know it should look something like this but it doesn't seem to like me

Code:
=SUMIF(INDIRECT("'"&$D$5&" Patients'!V2:V3,"<>#N/A")
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Your indirect has gone a bit wrong there. You have missed the closing inverted comma and bracket. Its:

INDIRECT("'"&$D$5&" Patients'!V2:V3")

There is also no sum range so i believe it will just use the criteria range.
 
Upvote 0
D5 has a name, such as Dave - This, in turn should refer to a sheet called Dave Patients and the sum should then add the values in V2:V301 (not sure why it's only showed V3) but when there is an #N/A in that range i get an error. otherwise it works fine.
 
Upvote 0
D5 has a name, such as Dave - This, in turn should refer to a sheet called Dave Patients and the sum should then add the values in V2:V301 (not sure why it's only showed V3) but when there is an #N/A in that range i get an error. otherwise it works fine.

=SUM(SUMIF(INDIRECT("'"&$D$5&" Patients'!V2:V3"),{"<0",">0"}))
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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