Excel formula to check availability
I have a list with dates (list 1). These dates stand for meetings.
To each of these meetings I assign a person, but sometimes the chosen person has already another appointment.
So I need to know, when I choose a person, that this person has not already another appointment (the appointments of different peoples will be saved in a separated excel list "list 2")!
When I'm right there has to be a formula that makes a dates comparison (between "list1" and "list2") and if the chosen person has an appointment on that specific date it should colour the column in "list1" where I want to enter the name of the person, red (as alert)!
Anyone has an idea?
microsoft-excel conditional-formatting
add a comment |
I have a list with dates (list 1). These dates stand for meetings.
To each of these meetings I assign a person, but sometimes the chosen person has already another appointment.
So I need to know, when I choose a person, that this person has not already another appointment (the appointments of different peoples will be saved in a separated excel list "list 2")!
When I'm right there has to be a formula that makes a dates comparison (between "list1" and "list2") and if the chosen person has an appointment on that specific date it should colour the column in "list1" where I want to enter the name of the person, red (as alert)!
Anyone has an idea?
microsoft-excel conditional-formatting
add a comment |
I have a list with dates (list 1). These dates stand for meetings.
To each of these meetings I assign a person, but sometimes the chosen person has already another appointment.
So I need to know, when I choose a person, that this person has not already another appointment (the appointments of different peoples will be saved in a separated excel list "list 2")!
When I'm right there has to be a formula that makes a dates comparison (between "list1" and "list2") and if the chosen person has an appointment on that specific date it should colour the column in "list1" where I want to enter the name of the person, red (as alert)!
Anyone has an idea?
microsoft-excel conditional-formatting
I have a list with dates (list 1). These dates stand for meetings.
To each of these meetings I assign a person, but sometimes the chosen person has already another appointment.
So I need to know, when I choose a person, that this person has not already another appointment (the appointments of different peoples will be saved in a separated excel list "list 2")!
When I'm right there has to be a formula that makes a dates comparison (between "list1" and "list2") and if the chosen person has an appointment on that specific date it should colour the column in "list1" where I want to enter the name of the person, red (as alert)!
Anyone has an idea?
microsoft-excel conditional-formatting
microsoft-excel conditional-formatting
edited Feb 13 at 10:36
Máté Juhász
14.7k63452
14.7k63452
asked Feb 13 at 10:13
Flyingdutchman10Flyingdutchman10
1
1
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
What you need is called conditional formatting
To achieve what you need:
- select the column you want to format
- in the ribbon in home tab select "conditional formatting" - "new rule" - "use a formula to determine ..."
- enter formula=COUNTIFS(Sheet2!$A:$A,A1,Sheet2!$B:$B,B1)>0
- click "format" - fill, select red and press ok twice

add a comment |
I hope I understand your requirement correctly. I have two lists of the same dates. I used 1 Feb till 28 Feb, and for simplicity, I only worked with the date, no time slots. But you could scale the functionality beyond just the date. Firstly, working Excel and dates, you first have to ensure that both lists are seen by Excel as the same data type. It might look like a date to you but if it's not in the right format Excel will see it as text (string).
Ok, So, the list on the right I populated with dates and a name next to each. This is the reference list. On the left, I have the same dates, but we're going to fill in the names to see if that person is available for that timeslot. I have a 3rd cell with the lookup formula in, and this will report the error if the user is busy.
The formula I used in column C (the warning Column) is as follows:
=IF(B2=VLOOKUP(A2;K2:L29;2;FALSE);"USER ALREADY BUSY";"")
The above is a copy of the formula from C2. This does a VLOOKUP on the date in B2, and compares it to the list (K2 to L29), and finds the name entered next to it. If it matches the name, it prints "User already busy", else we print nothing. I've attached a Screenshot for a better explanation.
Kindly note, I'm using a Mac and by default, my function separation character is a semi-colon, i.e. =VLOOKUP(A2;K2:L29;2;FALSE) and on Windows by default this will be a comma. i.e. =VLOOKUP(A2,K2:L29,2,FALSE). This is a regional setting on your PC. If your function separation character is a comma, use the following formula:
=IF(B2=VLOOKUP(A2,K2:L29,2,FALSE),"USER ALREADY BUSY","")
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1405203%2fexcel-formula-to-check-availability%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
What you need is called conditional formatting
To achieve what you need:
- select the column you want to format
- in the ribbon in home tab select "conditional formatting" - "new rule" - "use a formula to determine ..."
- enter formula=COUNTIFS(Sheet2!$A:$A,A1,Sheet2!$B:$B,B1)>0
- click "format" - fill, select red and press ok twice

add a comment |
What you need is called conditional formatting
To achieve what you need:
- select the column you want to format
- in the ribbon in home tab select "conditional formatting" - "new rule" - "use a formula to determine ..."
- enter formula=COUNTIFS(Sheet2!$A:$A,A1,Sheet2!$B:$B,B1)>0
- click "format" - fill, select red and press ok twice

add a comment |
What you need is called conditional formatting
To achieve what you need:
- select the column you want to format
- in the ribbon in home tab select "conditional formatting" - "new rule" - "use a formula to determine ..."
- enter formula=COUNTIFS(Sheet2!$A:$A,A1,Sheet2!$B:$B,B1)>0
- click "format" - fill, select red and press ok twice

What you need is called conditional formatting
To achieve what you need:
- select the column you want to format
- in the ribbon in home tab select "conditional formatting" - "new rule" - "use a formula to determine ..."
- enter formula=COUNTIFS(Sheet2!$A:$A,A1,Sheet2!$B:$B,B1)>0
- click "format" - fill, select red and press ok twice

answered Feb 13 at 10:44
Máté JuhászMáté Juhász
14.7k63452
14.7k63452
add a comment |
add a comment |
I hope I understand your requirement correctly. I have two lists of the same dates. I used 1 Feb till 28 Feb, and for simplicity, I only worked with the date, no time slots. But you could scale the functionality beyond just the date. Firstly, working Excel and dates, you first have to ensure that both lists are seen by Excel as the same data type. It might look like a date to you but if it's not in the right format Excel will see it as text (string).
Ok, So, the list on the right I populated with dates and a name next to each. This is the reference list. On the left, I have the same dates, but we're going to fill in the names to see if that person is available for that timeslot. I have a 3rd cell with the lookup formula in, and this will report the error if the user is busy.
The formula I used in column C (the warning Column) is as follows:
=IF(B2=VLOOKUP(A2;K2:L29;2;FALSE);"USER ALREADY BUSY";"")
The above is a copy of the formula from C2. This does a VLOOKUP on the date in B2, and compares it to the list (K2 to L29), and finds the name entered next to it. If it matches the name, it prints "User already busy", else we print nothing. I've attached a Screenshot for a better explanation.
Kindly note, I'm using a Mac and by default, my function separation character is a semi-colon, i.e. =VLOOKUP(A2;K2:L29;2;FALSE) and on Windows by default this will be a comma. i.e. =VLOOKUP(A2,K2:L29,2,FALSE). This is a regional setting on your PC. If your function separation character is a comma, use the following formula:
=IF(B2=VLOOKUP(A2,K2:L29,2,FALSE),"USER ALREADY BUSY","")
add a comment |
I hope I understand your requirement correctly. I have two lists of the same dates. I used 1 Feb till 28 Feb, and for simplicity, I only worked with the date, no time slots. But you could scale the functionality beyond just the date. Firstly, working Excel and dates, you first have to ensure that both lists are seen by Excel as the same data type. It might look like a date to you but if it's not in the right format Excel will see it as text (string).
Ok, So, the list on the right I populated with dates and a name next to each. This is the reference list. On the left, I have the same dates, but we're going to fill in the names to see if that person is available for that timeslot. I have a 3rd cell with the lookup formula in, and this will report the error if the user is busy.
The formula I used in column C (the warning Column) is as follows:
=IF(B2=VLOOKUP(A2;K2:L29;2;FALSE);"USER ALREADY BUSY";"")
The above is a copy of the formula from C2. This does a VLOOKUP on the date in B2, and compares it to the list (K2 to L29), and finds the name entered next to it. If it matches the name, it prints "User already busy", else we print nothing. I've attached a Screenshot for a better explanation.
Kindly note, I'm using a Mac and by default, my function separation character is a semi-colon, i.e. =VLOOKUP(A2;K2:L29;2;FALSE) and on Windows by default this will be a comma. i.e. =VLOOKUP(A2,K2:L29,2,FALSE). This is a regional setting on your PC. If your function separation character is a comma, use the following formula:
=IF(B2=VLOOKUP(A2,K2:L29,2,FALSE),"USER ALREADY BUSY","")
add a comment |
I hope I understand your requirement correctly. I have two lists of the same dates. I used 1 Feb till 28 Feb, and for simplicity, I only worked with the date, no time slots. But you could scale the functionality beyond just the date. Firstly, working Excel and dates, you first have to ensure that both lists are seen by Excel as the same data type. It might look like a date to you but if it's not in the right format Excel will see it as text (string).
Ok, So, the list on the right I populated with dates and a name next to each. This is the reference list. On the left, I have the same dates, but we're going to fill in the names to see if that person is available for that timeslot. I have a 3rd cell with the lookup formula in, and this will report the error if the user is busy.
The formula I used in column C (the warning Column) is as follows:
=IF(B2=VLOOKUP(A2;K2:L29;2;FALSE);"USER ALREADY BUSY";"")
The above is a copy of the formula from C2. This does a VLOOKUP on the date in B2, and compares it to the list (K2 to L29), and finds the name entered next to it. If it matches the name, it prints "User already busy", else we print nothing. I've attached a Screenshot for a better explanation.
Kindly note, I'm using a Mac and by default, my function separation character is a semi-colon, i.e. =VLOOKUP(A2;K2:L29;2;FALSE) and on Windows by default this will be a comma. i.e. =VLOOKUP(A2,K2:L29,2,FALSE). This is a regional setting on your PC. If your function separation character is a comma, use the following formula:
=IF(B2=VLOOKUP(A2,K2:L29,2,FALSE),"USER ALREADY BUSY","")
I hope I understand your requirement correctly. I have two lists of the same dates. I used 1 Feb till 28 Feb, and for simplicity, I only worked with the date, no time slots. But you could scale the functionality beyond just the date. Firstly, working Excel and dates, you first have to ensure that both lists are seen by Excel as the same data type. It might look like a date to you but if it's not in the right format Excel will see it as text (string).
Ok, So, the list on the right I populated with dates and a name next to each. This is the reference list. On the left, I have the same dates, but we're going to fill in the names to see if that person is available for that timeslot. I have a 3rd cell with the lookup formula in, and this will report the error if the user is busy.
The formula I used in column C (the warning Column) is as follows:
=IF(B2=VLOOKUP(A2;K2:L29;2;FALSE);"USER ALREADY BUSY";"")
The above is a copy of the formula from C2. This does a VLOOKUP on the date in B2, and compares it to the list (K2 to L29), and finds the name entered next to it. If it matches the name, it prints "User already busy", else we print nothing. I've attached a Screenshot for a better explanation.
Kindly note, I'm using a Mac and by default, my function separation character is a semi-colon, i.e. =VLOOKUP(A2;K2:L29;2;FALSE) and on Windows by default this will be a comma. i.e. =VLOOKUP(A2,K2:L29,2,FALSE). This is a regional setting on your PC. If your function separation character is a comma, use the following formula:
=IF(B2=VLOOKUP(A2,K2:L29,2,FALSE),"USER ALREADY BUSY","")
answered Feb 13 at 10:46
relevantRoperelevantRope
13
13
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1405203%2fexcel-formula-to-check-availability%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown