COUNTIF to Display Cell Reference

MelMel1

New Member
Joined
Jan 17, 2018
Messages
3
For reasons I cannot understand I have to use a COUNTIF function to lookup values in a range. This works just fine but I need to display a corresponding cell instead of TRUE or FALSE. I have used INDEX, MATCH, VLOOKUP, Power Pivot Relationships and this is the formula that does not produce an error. If I can get it to display a cell reference instead of TRUE or FALSE I can add another column to get the data to produce I need to see.

=COUNTIF('Archer Search Report'!H:AG,Sheet15!A2)>0

Any ideas to getting the cell reference instead of TRUE or FALSE?


Additional Info:

Essential I have two tables. Table1 has a current ID list and Table2 has a range of Legacy IDs. If an ID in Table1 matches any of the IDs in the range on Table2 there is a corresponding number which I need populate.

Vlookup%20Example.PNG
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Welcome to Mr Excel Forum

A small data sample (~10 rows), including Table 1 and Table 2, along with expected result(s) would be helpful for testing purposes.

M.
 
Upvote 0
Welcome to Mr Excel Forum

A small data sample (~10 rows), including Table 1 and Table 2, along with expected result(s) would be helpful for testing purposes.

M.

Thank you very much for your reply. Unfortunately all the links provided are blocked by my system admin. so I cannot attach per section B.
 
Upvote 0
Try Copy /Paste.
In Excel select a relevant part of Table 1 (~10rows); copy (Ctrl+C); paste (Ctrl+V) here in the forum reply page.
Do the same for Table 2
Also try to provide the expected results related to such data sample and the logic behind.
I have to leave now (i'll take a look later).
If you provide a good data sample, in the meantime maybe someone else can help you.

M.
 
Upvote 0
I'm not entirely clear on what you want, but maybe:

=ADDRESS(MIN(IF('Archer Search Report'!$H$1:$AG$100=Sheet15!A2,ROW('Archer Search Report'!$H$1:$AG$100))),MOD(MIN(IF('Archer Search Report'!$H$1:$AG$100=Sheet15!A2,ROW('Archer Search Report'!$H$1:$AG$100)*1000+COLUMN('Archer Search Report'!$H$1:$AG$100))),1000),4)

confirmed with Control+Shift+Enter.
 
Upvote 0
A bit shorter:

=CELL("address",INDIRECT(TEXT(MIN(IF('Archer Search Report'!$H$1:$AG$100=Sheet15!A2,ROW('Archer Search Report'!$H$1:$AG$100)*1000+COLUMN('Archer Search Report'!$H$1:$AG$100))),"R000C000"),0))

with CSE. But it uses INDIRECT, and I've seen some issues with CELL too.
 
Upvote 0
A bit shorter:

=CELL("address",INDIRECT(TEXT(MIN(IF('Archer Search Report'!$H$1:$AG$100=Sheet15!A2,ROW('Archer Search Report'!$H$1:$AG$100)*1000+COLUMN('Archer Search Report'!$H$1:$AG$100))),"R000C000"),0))

with CSE. But it uses INDIRECT, and I've seen some issues with CELL too.



This worked. I can't thank you enough. And you answered it not being entirely clear on what I needed? Incredible. Thank you agiain!
 
Upvote 0

Forum statistics

Threads
1,214,872
Messages
6,122,026
Members
449,061
Latest member
TheRealJoaquin

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