Returning True If Data Is in Range

aborg88

New Member
Joined
Jul 6, 2011
Messages
31
Suppose you have a list A1-A13:
1
2
3
4
5
3
4
5
6

and you want to see if the Cell C5 is in this list. E.g c5 = 5

=COUNTIF(A1:A135,C1)>0

Would work.

Now what happens if your range is on a different workbook.

r_t.xlsx (A1)

being your workbook name

sheet1 (B1)

(as it is in sheet one)

$A$1:$A$10 (C1)
Being your range.

="["&A1&"]"&B1&"!"&C1 (d1)
being your formula

=INDIRECT(D1) (e1)

being your functon to retrive the data.

Calling my previous =COUNTIF(E1,A3)>0 Using e1, would not compare the whole list; as only one reslt is bein returned by E1.

PLEASE HELP!!
<!-- / message --><!-- BEGIN TEMPLATE: ad_showthread_firstpost_sig --><!-- END TEMPLATE: ad_showthread_firstpost_sig -->
<!-- controls -->
progress.gif
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,224,587
Messages
6,179,734
Members
452,939
Latest member
WCrawford

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