jackcolasu
New Member
- Joined
- Jan 16, 2025
- Messages
- 4
- Office Version
- 365
- Platform
- Windows
Hi!
I'm trying to search data from 1 table and input a corresponding value into another. I'm new to excel so I'm not very formular-savvy, and the solution I came up with is very long. I'm wondering if there is a shorter/faster alternative. I want the data from this table:
To move to this table:
The problem is, the data in table is constantly changing. Today "31" is in cell C5, but tomorrow it could be in cell F7. This is the formula I came up with that works but is long/clunky:
So for room 21, it's searching each cell from C5 to G5 to equal 21 and then returning B5 if true. If there is no true statement, it searches each cell from C6 to G6 to equal 21 and then returns B6 if true, and so on. I don't want to have to type and edit this formula for each room going down the list - is there a simpler way?
I'm trying to search data from 1 table and input a corresponding value into another. I'm new to excel so I'm not very formular-savvy, and the solution I came up with is very long. I'm wondering if there is a shorter/faster alternative. I want the data from this table:
To move to this table:
The problem is, the data in table is constantly changing. Today "31" is in cell C5, but tomorrow it could be in cell F7. This is the formula I came up with that works but is long/clunky:
So for room 21, it's searching each cell from C5 to G5 to equal 21 and then returning B5 if true. If there is no true statement, it searches each cell from C6 to G6 to equal 21 and then returns B6 if true, and so on. I don't want to have to type and edit this formula for each room going down the list - is there a simpler way?