Range Lookup and return certain text

Simmy1982

New Member
Joined
Sep 14, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
This seams like it would be super easy and for what ever reason its slipping my mind. And I am sorry that I can't use XL2BB as the permissions are blocked on my work computer so I have to resort to attaching snip its of a smaller version of what I am trying to do.

What I am trying to do is look at sheet 2 D-F for "Name x" and return text to sheet 1 for "Name x". If the person is listed as absent for any task on sheet 2 then return Absent to sheet 1 for that person, then look for Not Complete on any task and return that to sheet 1 and then if all tasks are marked complete then sheet 1 would return Complete. It is only one value to return and in the order of "Absent", "Not Complete" and then "Complete".
 

Attachments

  • Sheet 1.PNG
    Sheet 1.PNG
    6.1 KB · Views: 9
  • Sheet 2.PNG
    Sheet 2.PNG
    11.1 KB · Views: 9

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
ignore - got wrong

i'll setup and see if works
 
Upvote 0
well , this is not a great formula
=IF(COUNTIFS(Sheet2!$A$2:$A$100,A2,Sheet2!$B$2:$B$100,"complete",Sheet2!$C$2:$C$100,"complete",Sheet2!$D$2:$D$100,"complete",Sheet2!$E$2:$E$100,"complete",Sheet2!$F$2:$F$100,"complete")=1,"complete",IF((COUNTIFS(Sheet2!$A$2:$A$100,A2,Sheet2!$B$2:$B$100,"not complete")+COUNTIFS(Sheet2!$A$2:$A$100,A2,Sheet2!$C$2:$C$100,"not complete")+COUNTIFS(Sheet2!$A$2:$A$100,A2,Sheet2!$D$2:$D$100,"not complete")+COUNTIFS(Sheet2!$A$2:$A$100,A2,Sheet2!$E$2:$E$100,"not complete")+COUNTIFS(Sheet2!$A$2:$A$100,A2,Sheet2!$F$2:$F$100,"not complete"))>0,"Not Complete",IF((COUNTIFS(Sheet2!$A$2:$A$100,A2,Sheet2!$B$2:$B$100,"absent")+COUNTIFS(Sheet2!$A$2:$A$100,A2,Sheet2!$C$2:$C$100,"absent")+COUNTIFS(Sheet2!$A$2:$A$100,A2,Sheet2!$D$2:$D$100,"absent")+COUNTIFS(Sheet2!$A$2:$A$100,A2,Sheet2!$E$2:$E$100,"absent")+COUNTIFS(Sheet2!$A$2:$A$100,A2,Sheet2!$F$2:$F$100,"absent"))>0,"Absent","other")))

i'm sure there are better ways

Book3
AB
1
2name1complete
3name2Not Complete
4name3Not Complete
5name4Not Complete
6name5Not Complete
7name6other
8name7Not Complete
Sheet1
Cell Formulas
RangeFormula
B2:B8B2=IF(COUNTIFS(Sheet2!$A$2:$A$100,A2,Sheet2!$B$2:$B$100,"complete",Sheet2!$C$2:$C$100,"complete",Sheet2!$D$2:$D$100,"complete",Sheet2!$E$2:$E$100,"complete",Sheet2!$F$2:$F$100,"complete")=1,"complete",IF((COUNTIFS(Sheet2!$A$2:$A$100,A2,Sheet2!$B$2:$B$100,"not complete")+COUNTIFS(Sheet2!$A$2:$A$100,A2,Sheet2!$C$2:$C$100,"not complete")+COUNTIFS(Sheet2!$A$2:$A$100,A2,Sheet2!$D$2:$D$100,"not complete")+COUNTIFS(Sheet2!$A$2:$A$100,A2,Sheet2!$E$2:$E$100,"not complete")+COUNTIFS(Sheet2!$A$2:$A$100,A2,Sheet2!$F$2:$F$100,"not complete"))>0,"Not Complete",IF((COUNTIFS(Sheet2!$A$2:$A$100,A2,Sheet2!$B$2:$B$100,"absent")+COUNTIFS(Sheet2!$A$2:$A$100,A2,Sheet2!$C$2:$C$100,"absent")+COUNTIFS(Sheet2!$A$2:$A$100,A2,Sheet2!$D$2:$D$100,"absent")+COUNTIFS(Sheet2!$A$2:$A$100,A2,Sheet2!$E$2:$E$100,"absent")+COUNTIFS(Sheet2!$A$2:$A$100,A2,Sheet2!$F$2:$F$100,"absent"))>0,"Absent","other")))


Book3
ABCDEF
1
2name1completecompletecompletecompletecomplete
3name2not completenot completenot completenot completenot complete
4name3abscentcompletenot completenot completenot complete
5name4not completecompletenot completenot completenot complete
6name5not completeabscentnot completeabscentabscent
7name6completecompletecompletecomplete
8name7not completeabscentnot completenot completenot complete
9name8not completenot completenot completenot completenot complete
10name9not completenot completenot completenot completenot complete
11name10not completenot completenot completenot completenot complete
Sheet2


this will be on dropbox for just a few days only
 
Upvote 0
Solution

Forum statistics

Threads
1,214,819
Messages
6,121,746
Members
449,050
Latest member
excelknuckles

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