Jan 30 2021 06:49 AM
Jan 30 2021 06:49 AM
I am trying to write a formula that does the following:
In Sheet1 cell C3 I have a List of values (Customer1, Customer2, etc)
The value in Sheet1 cell C4 is dependent on the value in Sheet1 cell C3.
Sheet1 cell C3 contains the Customer Name
Sheet1 cell C4 contains a Data Validation List of Branches for that Customer.
When a Customer is selected in Sheet1 cell C3, Sheet1 cell C4 is blank by default. The user then selects a Branch from the subsequent list.
I am trying to write an excel statement that checks Sheet1 cell C4 to see if it is blank.
If it is blank then I want it to look down a list of values in Sheet2 column B to see if one of the valid values contains the words "Head Office" (or "Head" or "Office"). If it finds a valid entry in this selection then I want Sheet 1 cell D3 to populate with the Head Office Address (which is referenced in Sheet2 columns C-G.
Can anyone help with this formula please?
I believe "IsNumber", "Search" and "Filter" should do the job, but I am lost on order, and the structure the formula would need to take. This is where I am up to, but these don't work.
=IF(C4="",(ISNUMBER(SEARCH("Head Office",(FILTER(Branch!$B$3:$B$63,(Branch!$B$3:$B$63=C4)," "))))))
As a simple test, I know that this works:
Jan 30 2021 07:52 AM
@FelixScatt Best to upload an example file, as it becomes a bit abstract imagining how your real schedule looks like. Make sure you remove any private and confidential information.
Jan 31 2021 02:48 AM
Thanks for the advice @Riny_van_Eekelen. I'll try again, with context...
Cell C3 contains a Data Validation list.
Cell C4 contains a Data Validation list which is dependent on the value in C3.
As the image provided shows, C4 has 3 Branch options: Cust1 Head Office, Cust1 S1, and Cust1 S2.
If Cell C4 contains a value, then Cells H3:H6 are populated based on the conditional value.
What I am trying to achieve is for H3:H6 to default to the value that contains "Head Office" if Cell C4 is blank. It needs to lookup the range of values to find the cell that contains "Head Office" as part of its value, which will then return the values into the H Cells.
Jan 31 2021 02:59 AM
@FelixScatt Better to upload the file with some example data in it. Not just a screenshot.
Jan 31 2021 03:41 AM
@Riny_van_Eekelen. Working example attached.
Jan 31 2021 04:01 AM
@FelixScatt See if the attached is acceptable for you. Column L:M on the main sheet, that is.
Jan 31 2021 04:14 AM
@Riny_van_Eekelen That looks spot on! Thank you so much. Much appreciated.