DCOUNT alternative for a closed source value error (Excel)

gemexcel

New Member
Joined
Jul 14, 2015
Messages
13
Hello,

I have a DCOUNT formula which looks in another sheet. It shows a VALUE error when the second sheet is closed. Much a like a sumif or countif.

What is the best alternative for this formula?

=DCOUNT('LINK'!$A:$Q,MATCH($C$30,'LINK'!$1:$1,0),'LINK'!$D$1:$D$2)

Thank you!
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Thank you for your response, I hope this helps...

I have my data on one workbook and then have another workbook with an overview in. This has has a cell with a drop down menu so you can select from a list of products.

I want to be able to show the total number of accounts which list the product that is selected in this drop down menu. I had used a dcount with the criteria ">0.1". I can not longer do this as the data comes from a different workbook and a DCOUNT formula shows as VALUE.

If 'Product 2' was selected in the drop down then I want to return '4'. If it was 'Product 1' then is should be '3'.

Here is an example of my data layout;

[TABLE="width: 500"]
<TBODY>[TR]
[TD]Sales Month to Date
[/TD]
[TD]Product 1
[/TD]
[TD]Product 2
[/TD]
[TD]Product 3
[/TD]
[TD]Product 4
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Account 1
[/TD]
[TD]2
[/TD]
[TD]4
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Account 2
[/TD]
[TD]4
[/TD]
[TD]5
[/TD]
[TD][/TD]
[TD]8
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Account 3
[/TD]
[TD]3
[/TD]
[TD]4
[/TD]
[TD]2
[/TD]
[TD]5
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Account 4
[/TD]
[TD][/TD]
[TD]1
[/TD]
[TD]7
[/TD]
[TD]5
[/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]

[TABLE="width: 80"]
<TBODY>[TR]
[TD="width: 107, bgcolor: transparent"]Thanks!


<TBODY>
[TD="class: xl65"][/TD]

</TBODY>
[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"][/TD]
[/TR]
</TBODY>[/TABLE]
 
Upvote 0

Excel 2010
ABCDE
1Sales Month to DateProduct 1Product 2Product 3Product 4
2Account 124
3Account 2458
4Account 33425
5Account 4175
6
7Product 13
8Product 24
9Product 32
10Product 43
Sheet1
Cell Formulas
RangeFormula
B7=COUNTIF(OFFSET($A$2,,MATCH(A7,$B$1:$E$1),4),">"&0)
 
Upvote 0
Thank you for your response but this doesn't solve my problem as COUNTIF does not work when the source workbook is closed.

I also don't want all the the Products listed like that, the formula needs to pick up the correct product from a cell e.g. B7. B7 is a drop down list so could change and therefore the $A$2 part of your formula would not work.

Unless I am misstaken, I am no expert!

Thanks again.
 
Upvote 0
This appears to work with closed workbooks using XL2013.

=SUMPRODUCT(--(INDEX([Book1.xlsx]Link!B2:Q100,0,MATCH(C30,[Book1.xlsx]Link!B1:Q1,0))>0))

Note: Do not use full column or full row references with this type of array processing formula.
 
Upvote 0

Forum statistics

Threads
1,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

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