Assistance with IF function

Status
Not open for further replies.

DoggoS

New Member
Joined
Feb 14, 2023
Messages
24
Office Version
  1. 365
Platform
  1. Windows
Hi there,

I have a workbook containing 2 sheets with various employee data - one sheet named 'Asset Tracking' contains the Employee Email Address (in column D) and the other sheet named 'A34 Enrolled Users' contains Employee Email Address (in column D).

I need a formula to look up the Employee Email Address from 'A34 Enrolled Users'’ sheet and match it to the Employee Email Address from 'Asset Tracking’ sheet and if it finds it to then put ‘Y’ into the ‘New Device Enrolled’ (Column I) within the 'Asset Tracking’ sheet. Please note the 'A34 Enrolled Users' is updated on a weekly basis so hoping this doesn't impact the formula.
I hope that makes sense... but Ive added a snap shot of data I'm working with.
Grateful for any assistance - thank you in advance

1725365332918.png


1725365351160.png
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
use a countif()

so in your column I

=countif( 'A34 Enrolled Users'!D:D,D4)
then use an IF to get YES & NO
=IF( countif( 'A34 Enrolled Users'!D:D,D4)>0, "yes","no")
copy down

I have D:D , that should stay when you update the sheet and use ALL rows - I dont like using column references , as refers to >1million rows , but in this case maybe OK
 
Upvote 0
use a countif()

so in your column I

=countif( 'A34 Enrolled Users'!D:D,D4)
then use an IF to get YES & NO
=IF( countif( 'A34 Enrolled Users'!D:D,D4)>0, "yes","no")
copy down

I have D:D , that should stay when you update the sheet and use ALL rows - I dont like using column references , as refers to >1million rows , but in this case maybe OK
Hey thank you for the above, appreciated as always :)

=IF( countif( 'A34 Enrolled Users'!D:D,D4)>0, "yes","no") - this formula seems to be returning 'false'?

Please note this is just a snap shot of data I'm working with - the real data I am working on currently contains 400 rows, sorry I'm not sure if this makes a difference.
 
Upvote 0
no the rows should not
should not return false
check the commas
as FALSE i have set as NO

=IF(COUNTIF( 'A34 Enrolled Users'!D:D,D4)>0, "yes","no")

copy the formula you have used here


Book4
ABCDEFGHI
1
2
3
4fred-1@email.comyes
5no
6fred-1@email.comyes
7no
8no
9no
10fred-2@email.comyes
11no
12no
13no
14fred-3@email.comyes
15no
16
Sheet2
Cell Formulas
RangeFormula
I4:I15I4=IF(COUNTIF( 'A34 Enrolled Users'!D:D,D4)>0, "yes","no")



Book4
ABCDEF
1
2
3
4fred-1@email.com
5fred-2@email.com
6fred-3@email.com
7
8
9
A34 Enrolled Users
 
Upvote 0
Didn't you already ask this question and have it answered here?
 
Upvote 0
no the rows should not
should not return false
check the commas
as FALSE i have set as NO

copy the formula you have used here
Ignore me it's working on my test sheet but unfortunately returning incorrect data when using on my actual data sheet...Please note this sheet is saved on sharepoint and not locally on my PC.
 
Upvote 0
not sure how sharepoint works these days , last used in 2000 ish
I would expect it to still use formulas ok,
BUT , can you answer
Joe4
not going to answer further if its already answered elseware , bit of a waste of time then
 
Upvote 0
Didn't you already ask this question and have it answered here?
Hi Joe, working with slightly diff data this time around. The formula suggested on this thread initially worked but came across same issue that it was returning incorrect data on the actual worksheet I was working with.
 
Upvote 0
not sure how sharepoint works these days , last used in 2000 ish
I would expect it to still use formulas ok,
BUT , can you answer
Joe4
not going to answer further if its already answered elseware , bit of a waste of time then
Totally understand, as per my reply to Joe it was different data working with 2 sheets....here I've combined all data in one workbook hoping it'll be more accurate.
 
Upvote 0
Hi Joe, working with slightly diff data this time around. The formula suggested on this thread initially worked but came across same issue that it was returning incorrect data on the actual worksheet I was working with.
Then you should continue in the original post instead of starting a new one.
Since it appears to be the same question (but with slightly different data - though you did not post any data in your original thread), please continue on in that other thread (please do not start a new thread on the same topic). Per forum rules, threads of a duplicate nature will usually be locked or deleted (rule 12 here: Message Board Rules).
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,224,816
Messages
6,181,141
Members
453,021
Latest member
Justyna P

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