Returning a cell with from a range a data

Severno

New Member
Joined
Feb 21, 2024
Messages
16
Office Version
  1. 365
Platform
  1. Windows
I will try and explain this as simple as I can. I have six stores in a row. Let's call them Boston, New York, Orlando, Houston, Dallas and LA.

LA has a delivery window of 10 to 11

I want to return the delivery window in a cell while the formula is reading the row. LA could be the first stop or last stop. It could be anywhere in the row.

I made an index match and also a xlookup but I keep getting a #SPILL error. I am assuming it can't read from all 6 cells and give the answer in one cell?

What options do I have? Thank you all in advance.
 
What are you having issues with?
I already have both options already listed in the formula.

If it is not working as expected, it usually means that either:
- the range is not correct
- the text does not match exactly (look for extra spaces or special characters)
I got it to work! Thank you again.
 
Upvote 0

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
You are welcome.
Out of curiosity, what was the issue?
When I translated it back over to the actual data that I had I had an extra, in there where it wasn't supposed to be. It was completely my fault but I do appreciate everything and now it's working perfectly.
 
Upvote 0
When I translated it back over to the actual data that I had I had an extra, in there where it wasn't supposed to be. It was completely my fault but I do appreciate everything and now it's working perfectly.
I have a question Joe4... Just in case there is a scenario where there are 2 delivery window in the same row is there a way to get both of them carried over?
 
Upvote 0
Maybe something like this?
Excel Formula:
=IF(COUNTIF(B2:G2,"RICHMOND")>0,"Richmond 6:00 - 8:00, ","") & IF(COUNTIF(B2:G2,"LA")>0,"LA 10:00 - 12:00","")
 
Upvote 0
Solution

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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