Lookup against multiple columns and return header values

%3CLINGO-SUB%20id%3D%22lingo-sub-2426265%22%20slang%3D%22en-US%22%3ELookup%20against%20multiple%20columns%20and%20return%20header%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2426265%22%20slang%3D%22en-US%22%3E%3CP%3EI%20need%20to%20populate%20the%20headers%20listed%20from%20columns%20J%20to%20R%20against%20the%20space%20references%20in%20column%20G.%20So%20for%20example%20where%20column%20J%20Sit%20to%20Stand%20is%20Yes%2C%20i%20need%20that%20header%20value%20i.e.%20Sit%20to%20Stand%20to%20be%20populated%20in%20cell%20I5.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAgain%20for%20that%20same%20space%20of%20%22E01%22%2C%20row%20Cell%20G5%20where%20it%20also%20has%20yes%20against%20monitor%20column%20L%2C%20i%20need%20cell%20I6%20to%20be%20populated%20with%20the%20header%20i.e.%20Monitor.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20anyone%20help%20with%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2426265%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2426343%22%20slang%3D%22en-US%22%3ERe%3A%20Lookup%20against%20multiple%20columns%20and%20return%20header%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2426343%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1073701%22%20target%3D%22_blank%22%3E%40MHir03%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20need%2C%20I%20think%2C%20to%20give%20a%20bit%20more%20information%20about%20how%20the%20data%20are%20arranged%20here%3B%20what's%20the%20underlying%20connection%20between%20the%20data%20under%20the%20yellow%20headings%20and%20the%20data%20in%20columns%20F%20and%20G%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAre%20rows%20F5%3AG14%20all%20referring%20to%20a%20single%20employee%20or%20single%20office%3F%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20have%20nine%20columns%20in%20yellow%2C%20but%20ten%20rows%20for%20each%20combination%20in%20columns%20F%20and%20G...so%20IF%20I%20follow%20what%20you're%20asking%20in%20terms%20of%20transposing%20the%20headings%20with%20%22Yes%22%20to%20a%20corresponding%20--but%20how%20is%20it%20corresponding%3F!--%20row%20in%20column%20I%2C%20why%20the%20extra%20row%3F%3C%2FP%3E%3CP%3EYou%20have%20removed--for%20sake%20of%20confidentiality--the%20identifiers%20in%20columns%20A-C%2C%20but%20it%20might%20well%20be%20that%20what%20you're%20wanting%20to%20do%20would%20be%20greatly%20facilitated%20by%20the%20presence%20of%20some%20(false)%20names%20and%20IDs.%20Could%20you%2C%20therefore%2C%20put%20together%20a%20greatly%20reduced%20but%20more%20complete%20spreadsheet%2C%20more%20representative%20of%20the%20kind%20of%20data%20you're%20actually%20dealing%20with.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAt%20the%20very%20least%2C%20though%2C%20if%20you%20expect%20to%20use%20some%20logic%20in%20doing%20this%2C%20you'll%20need%20to%20explain%20things%20a%20lot%20more%20completely%20in%20terms%20of%20the%20relationships%20between%20the%20various%20components--individual%20columns%20and%20rows--as%20well%20as%20whole%20contiguous%20areas.%20Otherwise%20you're%20in%20effect%20blind-folding%20the%20people%20from%20whom%20you%20are%20requesting%20help.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2426560%22%20slang%3D%22en-US%22%3ERe%3A%20Lookup%20against%20multiple%20columns%20and%20return%20header%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2426560%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F425987%22%20target%3D%22_blank%22%3E%40mathetes%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3Ethe%20connection%20is%20that%20these%20are%20desk%20feature%20corresponding%20to%20a%20single%20desk%20but%20whilst%20they%20presented%20here%20horizontally%20i%20need%20presented%20vertically%20so%20need%20the%20headers%20populated%20in%20column%20I%20where%20there%20is%20a%20%22yes%22%20found%20against%20columns%20J%20to%20R.%3C%2FLI%3E%3CLI%3E%3CSPAN%3EF5%3AG14%20all%20refer%20to%20a%20single%20desk%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3EI%20have%20corrected%20the%20issue%20with%20the%20extra%20row%20per%20desk%20feature%20in%20column%20G%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2426920%22%20slang%3D%22en-US%22%3ERe%3A%20Lookup%20against%20multiple%20columns%20and%20return%20header%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2426920%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1073701%22%20target%3D%22_blank%22%3E%40MHir03%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20still%20have%20a%20long%20way%20to%20go%20to%20fully%20explain%20the%20logic%20behind%20the%20data.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20example%3A%3C%2FP%3E%3CUL%3E%3CLI%3Edo%20cells%20J5%3AR5%20all%20refer%20to%20the%20single%20employee%20represented%20by%20Floor%2042%20and%20Space%20E01%3F%20or%3C%2FLI%3E%3CLI%3Edoes%20each%20row%20in%20J5%3AR13%20refer%20to%20the%20corresponding%20single%20row%20in%20the%20F5%3AG13%3F%20or%3C%2FLI%3E%3CLI%3Esomething%20else%20altogether%3F%3C%2FLI%3E%3C%2FUL%3E%3CP%3EThe%20examples%20you%20added%20in%20column%20I%20confirmed%20what%20was%20already%20pretty%20clear.%20But%20you%20still%20haven't%20explained%20how%20one%20can%20get%20there%20from%20the%20data.%20%26nbsp%3BThere%20is%20so%20much%20redundancy%20in%20the%20rows%20with%20the%20yellow%20column%20headings%20that%20I%20can't%20make%20sense%20of%20them.%20A%20good%20database%20design%20would%20NOT%20have%20repeating%20rows%20for%20the%20same%20individual%2Foffice.%20But%20it%20certainly%20looks%20as%20if%20that's%20what%20yours%20does.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20other%20words%2C%20you%20already%20have%20the%20data%20for%20individual%2042%2FE01%20in%20the%20first%20row.%20It's%20laid%20out%20horizontally%3B%20why%20does%20it%20need%20to%20be%20vertical%3F%20What%20are%20you%20doing%20that%20can't%20be%20accomplished%20by%20making%20this%20spreadsheet%201%2F9th%20the%20size%3F%20Eliminate%20the%20redundancies.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I need to populate the headers listed from columns J to R against the space references in column G. So for example where column J Sit to Stand is Yes, i need that header value i.e. Sit to Stand to be populated in cell I5.

 

Again for that same space of "E01", row Cell G5 where it also has yes against monitor column L, i need cell I6 to be populated with the header i.e. Monitor.

 

Can anyone help with this?

3 Replies

@MHir03 

 

You need, I think, to give a bit more information about how the data are arranged here:

  • what's the underlying connection between the data under the yellow headings and the data in columns F and G?
  • Are rows F5:G14 all referring to a single employee or single office? 
  • You have nine columns in yellow, but ten rows for each combination in columns F and G...so IF I follow what you're asking in terms of transposing the headings with "Yes" to a corresponding --but how is it corresponding?!-- row in column I, why the extra row?
  • You have removed--for sake of confidentiality--the identifiers in columns A-C, but it might well be that what you're wanting to do would be greatly facilitated by the presence of some (false) names and IDs. Could you, therefore, put together a greatly reduced but more complete spreadsheet, more representative of the kind of data you're actually dealing with.

 

At the very least, though, if you expect to use some logic in doing this, you'll need to explain things a lot more completely in terms of the relationships between the various components--individual columns and rows--as well as whole contiguous areas. Otherwise you're in effect blind-folding the people from whom you are requesting help.

@mathetes 

 

  • the connection is that these are desk feature corresponding to a single desk but whilst they presented here horizontally i need presented vertically so need the headers populated in column I where there is a "yes" found against columns J to R.
  • F5:G14 all refer to a single desk
  • I have corrected the issue with the extra row per desk feature in column G

@MHir03 

 

You still have a long way to go to fully explain the logic behind the data.

 

For example:

  • do cells J5:R5 all refer to the single employee represented by Floor 42 and Space E01? or
  • does each row in J5:R13 refer to the corresponding single row in the F5:G13? or
  • something else altogether?

The examples you added in column I confirmed what was already pretty clear. But you still haven't explained how one can get there from the data.  There is so much redundancy in the rows with the yellow column headings that I can't make sense of them. A good database design would NOT have repeating rows for the same individual/office. But it certainly looks as if that's what yours does. 

 

In other words, you already have the data for individual 42/E01 in the first row. It's laid out horizontally; why does it need to be vertical? What are you doing that can't be accomplished by making this spreadsheet 1/9th the size? Eliminate the redundancies.