Difficulty referencing a row in another worksheet

Veev

New Member
Joined
Jun 10, 2011
Messages
11
On Sheet 2 (named Attendance), I have the following formula:

Code:
=IF(ISNUMBER(SEARCH("Veev",Attendance!2:2)),Attendance!B2,0)+IF(ISNUMBER(SEARCH("Veev",Attendance!3:3)),Attendance!B3,0)
On that sheet I have "4" in B2, and "2" in B3. The formula returns "6", as intended (since it found the word "Veev" in both rows).

However, when I paste that exact same formula on Sheet 1, it just returns "0". I cannot, for the life of me, figure out why. If I just try to reference "Attendance!B2" it will return "4" just fine, but it seems to be having some trouble in referencing the full row?

I have tried replacing "Attendance!2:2" with "Attendance!C2:ZZ2" but it didn't make a difference.

Any help would be greatly appreciated! :)
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
I think you want MATCH:

=IF(ISNUMBER(MATCH("*veev*", Attendance!2:2, 0)), Attendance!B2) + ...


The match is not case-sensitive. The formula must be confirmed with Ctrl+Shift+Enter.
 
Last edited:
Upvote 0
Hmm... thanks for the prompt reply, but that doesn't seem to be working.

=IF(ISNUMBER(MATCH("Veev",Attendance!2:2)),Attendance!B2,0)+IF(ISNUMBER(MATCH("Veev",Attendance!3:3)),Attendance!B3,0)
This returns 6, whether the word "veev" is there or not.

=IF(ISNUMBER(MATCH("*veev*",Attendance!2:2)),Attendance!B2,0)+IF(ISNUMBER(MATCH("*veev*",Attendance!3:3)),Attendance!B3,0)
This returns 0, no matter what I do.

{=IF(ISNUMBER(MATCH("*veev*",Attendance!2:2)),Attendance!B2,0)+IF(ISNUMBER(MATCH("*veev*",Attendance!3:3)),Attendance!B3,0)}
(Ctrl+Shift+Enter) This returns 0 as well.

The search function works flawlessly on the other page, I delete the word "Veev" from 1 row and the returned value changes from 6 to either 4 or 2. I'm not sure what the advantage of using match is over search.

Here is the spreadsheet I'm working with if that'd be more helpful: www.veevsvault.com/veev/riftdkp.xlsx

The cells I'm trying to get to work properly are B2 and B3 on the 1st worksheet -- which are referencing some data on the 2nd worksheet.

Thanks again!
 
Last edited:
Upvote 0
The 0 applies to the MATCH function:

=IF(ISNUMBER(MATCH("*veev*", Attendance!2:2, 0)), Attendance!B2) + ...
 
Upvote 0
No worries, we all see what we expect to see somtimes. Glad you got it sorted.
 
Upvote 0
One more question if you don't mind... if I need to create a new thread I don't mind, since this is a sort of different topic, just don't want to clutter the forum.

=IF(ISNUMBER(MATCH(A2, Attendance!$3:$3, 0)),Attendance!$B$3,0)+IF(ISNUMBER(MATCH(A2, Attendance!$4:$4, 0)),Attendance!$B$4,0)

This is my final (working) formula. A2 being the word "Veev" -- so it checks row 3 for "Veev", then row 4 for "Veev", etc.

I'd like for it to check as many rows that exist on that worksheet, without having to specify each one... whether it's 2 rows or 200 rows.

Is there an easy way to do this? I assume it has something to do with the index function, but unfortunately I have no experience using it.
 
Upvote 0

Forum statistics

Threads
1,224,608
Messages
6,179,872
Members
452,949
Latest member
Dupuhini

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