Vlookup to find one range status with two references

Sathish G

New Member
Joined
Aug 16, 2017
Messages
44
Office Version
  1. 2013
Platform
  1. Windows
Hi experts,

I need your help to match the training completed and not competed formula with below criteria.

Formula expectation:-

* Finding A column names by choosing Training 4288,6599,9075 in sheet2 reference where we have names are trainings.

Sheet1
Sheet1.JPG



Sheet2

Sheet2.JPG
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
you could use a countifs(), rather than lookup
what do you want in the cells
using an IF

=countifs(Sheet2!$A$1:$A$1000, $A2,Sheet2!$c$1:$C$1000, B$1)
now if that finds a record , it will return 1 or more
if not then zero 0

so you could add an if

=IF(countifs(Sheet2!$A$1:$A$1000, $A2,Sheet2!$C$1:$C$1000, B$1)>0, "Training Complete', "No Training")
copy across and down
change 1000 rows to whatever the likely maximum will be
 
Upvote 0
Solution
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
glad its worked out , good idea to update your profile for the version you are using, that would help for solutions
 
Upvote 0
=IF(countifs(Sheet2!$A$1:$A$1000, $A2,Sheet2!$C$1:$C$1000, B$1)>0, "Training Complete', "No Training") Is it possible to highlight "No Training" as Red color? with this formula?
 
Upvote 0
yes ,
in conditional formatting
use
countifs(Sheet2!$A$1:$A$1000, $A2,Sheet2!$C$1:$C$1000, B$1)=0

for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
Conditional Formatting

Highlight applicable range >>
B2:D5 - Change, reduce or extend the rows to meet your data range of rows

Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:
countifs(Sheet2!$A$1:$A$1000, $A2,Sheet2!$C$1:$C$1000, B$1)=0

Format [Number, Font, Border, Fill] - choose fill red
choose the format you would like to apply when the condition is true
OK >> OK

Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.

Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

This will possibly enable a quicker and more accurate solution for you.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone
 
Upvote 0

Forum statistics

Threads
1,215,076
Messages
6,122,983
Members
449,092
Latest member
Mr Hughes

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