This is very confusing to explain so please excuse if I don’t explain well enough.
In column A have Person name.
in Column C is where formula goes.
if cell A2:A10 start with letter Q then c2:c10 will be = E2:E10
if cell A11:A20 start with letter B then c11:c20 will be = G2:G10
QData & Bdata is random column Lenth
I tried writting 1 line formula but it didn’t work.
in c2 and drag formula down
=if(left(a2,1)="Q",O2,if(left(a2,1)="B",P2,"mORE IF COND"))

If I understand the input correctly – you need smth like this:
Please add instead of
A2any output you like if cells in A match neither “Q” nor “B”.EDITED Update as per changed reqs:
Sample file: https://www.dropbox.com/s/izrjcvgix752klw/QueenBoyIF.xlsx