Set of conditions that outputs specific value between a range of cells.

timsharper

New Member
Joined
Jan 7, 2018
Messages
5
Hi,

This might be a bit wordy so I apologise in advance.

Basically, I have a set of data where a range of cells display either "1. Agree", "2. Agree with Recommendations" or "3. Disagree".

For concreteness, let's assume that these are in A1:A5.

Essentially, I would like cell A6 to display one of "1. Agree", "2. Agree with Recommendations" or "3. Disagree" based on the following conditions:

- Display "1. Agree" if All cells A1:A5 are "1. Agree"

- Display "2. Agree with Recommendations" if at-least one cell is "2. Agree with Recommendations" and/or there are up to two "3. Disagree"'s between the cells A1:A5.

- Display "3. Disagree" if three or more cells in A1:A5 contain "3. Disagree".



I'm not sure whether this is a job for multiple COUNTIF's?

Any help would be appreciated! - Let me know if you have any questions!

Thanks,

Tim
 
Thanks...

What is the conclusion if you have the following?

Row\Col
A​
1​
1. Agree
2​
1. Agree
3​
4. N/A
4​
3. Disagree
5​
1. Agree
 
Last edited:
Upvote 0

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,215,237
Messages
6,123,800
Members
449,127
Latest member
Cyko

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