Tricky formula structure

fireslguk

Active Member
Joined
Nov 11, 2005
Messages
298
Hi the following is beyond my capability

5 seperate tabs

A drop down on each tab same cell location

Can be Tea Coffee or mix

So formula being

If any of the 5 cells have “Tea” then the result is Tea
If any of the 5 cells have “Coffee” then result Coffee
if any of the cells have a mix of Tea and Coffee makes result Mix
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Suppose the sheets are Sheet1 to Sheet5 and we're looking at cell A1. Then this formula should work (if I understood your rules correctly):
Excel Formula:
=LET(all,Sheet1!A1&Sheet2!A1&Sheet3!A1&Sheet4!A1&Sheet5!A1,hasCoffee,NOT(ISERROR(SEARCH("coffee",all))),hasTea,NOT(ISERROR(SEARCH("tea",all))),IF(LEN(all)=0,"Neither",IF(AND(hasTea,hasCoffee),"mix",IF(hasTea,"Tea","Coffee"))))
 
Upvote 0
What version of Excel are you using?
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
Suppose the sheets are Sheet1 to Sheet5 and we're looking at cell A1. Then this formula should work (if I understood your rules correctly):
Excel Formula:
=LET(all,Sheet1!A1&Sheet2!A1&Sheet3!A1&Sheet4!A1&Sheet5!A1,hasCoffee,NOT(ISERROR(SEARCH("coffee",all))),hasTea,NOT(ISERROR(SEARCH("tea",all))),IF(LEN(all)=0,"Neither",IF(AND(hasTea,hasCoffee),"mix",IF(hasTea,"Tea","Coffee"))))

What version of Excel are you using?
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’)
Apologies both - typo :( it works
 
Upvote 0
Can you please update your profile as requested. It helps us to help you.
 
Upvote 0

Forum statistics

Threads
1,215,493
Messages
6,125,128
Members
449,206
Latest member
burgsrus

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