SOLVED
Home

Return Address of Max Value in a Range --modification needed

%3CLINGO-SUB%20id%3D%22lingo-sub-1126420%22%20slang%3D%22en-US%22%3EReturn%20Address%20of%20Max%20Value%20in%20a%20Range%20--modification%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1126420%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20programmed%20a%20worksheet%20to%20run%20a%20set%20of%20quality%20assurance%20checks%20on%20data%20from%20other%20sheets%20in%20the%20book...%20In%20the%20attached%20file%2C%20the%20QA%20assesses%20data%20(view%20sheet%20notes%20for%20details)%20on%20the%20Facility%20and%20Project%20sheets%20and%20uses%20conditional%20formatting%20to%20highlight%20flags%2Fconcerns.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EStarting%20in%20C16%20on%20the%20QA%20sheet%2C%26nbsp%3BI'm%20using%20the%20following%20set%20of%20functions%20within%20a%20larger%20formula%20to%20return%20the%20address%20of%20the%20building%20type%20on%20the%20Facility%20sheet%20with%20the%20largest%20percent%20floor%20area%3A%3C%2FP%3E%3CP%3EINDIRECT(ADDRESS(MATCH(MAX(Facility!E%2417%2CFacility!E%2421%2CFacility!E%2425%2CFacility!E%2429%2CFacility!E%2433)%2CFacility!E%241%3AFacility!E%2433%2C0)%2CCOLUMN(E%241)%2C2%2C1%2C%22Facility%22))%3CBR%20%2F%3ESo%20far%2C%20this%20works%20fine%2C%20EXCEPT%20in%20one%20scenario...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMY%20PROBLEM%3A%3C%2FP%3E%3CP%3EMatch%20returns%20the%20row%20number%20in%20terms%20of%20the%20lookup%20array%20so%20in%20order%20to%20get%20%22Facility!E17%22%20instead%20of%20E1%2C%20I%20believe%20I%20need%20to%20use%20the%20lookup%20array%20highlighted%20above%3CBR%20%2F%3EI%20run%20into%20an%20issue%20when%20the%20max%20value%20(aka%20lookup%20value)%20is%201%20(100%25%20floor%20area%20is%20max)%20because%20participants%20can%20enter%201%20as%20a%20response%20in%20Facility!E13%3A15%20(Feel%20free%20to%20play%20with%20the%20Facility%20data%20to%20see%20how%20this%20affects%20QA)%3CBR%20%2F%3EI%20really%20don't%20know%20what%20I%20can%20do%20differently%20so%20I%20need%20help!!%20How%20can%20I%20modify%20either%20the%20formula%20(preferable)%20or%20the%20cells%20on%20the%20facility%20tab%20so%20that%20a%201%20is%20distinguishable%20from%20100%25%3F%20The%20building%20type%20cells%20have%20data%20validation%20for%20decimal%200%20and%201%20and%20are%20formatted%20for%20percentages.%20Since%20the%20QA%20sheet%20needs%20to%20be%20pasted%20into%2060%2B%20similar%20files%2C%20I'd%20rather%20not%20have%20to%20do%20too%20much%20manual%20manipulation%20to%20get%20this%20resolved.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1126420%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-1127077%22%20slang%3D%22en-US%22%3ERe%3A%20Return%20Address%20of%20Max%20Value%20in%20a%20Range%20--modification%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1127077%22%20slang%3D%22en-US%22%3EHow%20about%20formatting%20the%20input%20cells%20as%20%25%20-%20then%20if%201%20is%20entered%20is%20displays%20as%201%25%20whereas%20the%20actual%20value%20behind%20it%20is%200.01%20(70%25%20as%200.70%20and%20100%25%20as%201.00%2C%20etc.).%20I%20think%20this%20should%20work.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1127094%22%20slang%3D%22en-US%22%3ERe%3A%20Return%20Address%20of%20Max%20Value%20in%20a%20Range%20--modification%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1127094%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F520173%22%20target%3D%22_blank%22%3E%40shawb%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFirst%2C%20I%20wonder%20how%20you%20guarantee%20the%20quality%20of%20your%20quality%20assurance%20checks.%20Your%20formulae%20are%2C%20in%20my%20opinion%2C%20far%20too%20complicated%2C%20difficult%20to%20read%2C%20check%20and%20maintain.%20For%20instance%2C%20in%20sheet%20QA%2C%20cell%20C16%2C%20the%20formula%20has%202765%20characters.%20All%20it%20does%20is%20determine%20that%20the%20largest%20building%20is%20either%20heated%2C%20cooled%20or%20both.%20Finding%20place%20number%20(or%20index)%20of%20the%20largest%20percentage%20in%20the%20range%20where%20you%20list%20the%20building%20types%20(1-5)%20could%20be%20done%20by%20the%20following%20formula%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%3DMATCH(MAX(Facility!E16%3AE35)%2CFacility!E16%3AE35%2C0)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3BIt%20will%20return%20either%202%2C%206%2C%2010%2C%2014%2C%20or%2018.%20From%20that%20point%20you%20can%20%22fairly%20easily%22%20determine%20the%20Yes%2FNo%20for%20Heating%20(1%20row%20below)%20and%20Cooling%20(2%20rows%20below).%20Like%20so%20(taking%20%22only%22%20557%20characters)%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%3DIFS(AND(INDEX(Facility!E16%3AE35%2CMATCH(MAX(Facility!E16%3AE35)%2CFacility!E16%3AE35%2C0)%2B1%2C1)%3D%22Yes%22%2CINDEX(Facility!E16%3AE35%2CMATCH(MAX(Facility!E16%3AE35)%2CFacility!E16%3AE35%2C0)%2B2%2C1)%3D%22Yes%22)%2C%22Both%22%2CAND(INDEX(Facility!E16%3AE35%2CMATCH(MAX(Facility!E16%3AE35)%2CFacility!E16%3AE35%2C0)%2B1%2C1)%3D%22Yes%22%2CNOT(INDEX(Facility!E16%3AE35%2CMATCH(MAX(Facility!E16%3AE35)%2CFacility!E16%3AE35%2C0)%2B2%2C1)%3D%22Yes%22))%2C%22Heated%20only%22%2CAND(NOT(INDEX(Facility!E16%3AE35%2CMATCH(MAX(Facility!E16%3AE35)%2CFacility!E16%3AE35%2C0)%2B1%2C1)%3D%22Yes%22)%2CINDEX(Facility!E16%3AE35%2CMATCH(MAX(Facility!E16%3AE35)%2CFacility!E16%3AE35%2C0)%2B2%2C1)%3D%22Yes%22)%2C%22Cooled%20only%22)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EStill%2C%20far%20from%20optimal.%20Using%20Named%20ranges%20with%20easy%20to%20understand%20names%20would%20further%20reduce%20the%20size%20of%20this%20formula.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThen%2C%20I%20actually%20wonder%20why%20you%20not%20%3CEM%3E%3CSTRONG%3Ealways%3C%2FSTRONG%3E%3C%2FEM%3E%20enter%20data%20for%20the%20largest%20building%20in%20the%20first%20part%2C%20so%20that%20you%20can%20skip%20the%20previous%20step%20all%20together.%20It%20would%20probably%20simplify%20most%20of%20your%20other%20formulae%20as%20well.%20Finding%20the%20heating%2Fcooling%20answer%20could%20then%20be%20like%20this%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%3DIF(Facility!E18%3D%22Yes%22%2C%22Heated%22%2C%22-%20%22)%26amp%3BIF(Facility!E19%3D%22Yes%22%2C%22%2FCooled%22%2C%22%2F%20-%22)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20will%20return%20%22Heated%2F-%22%2C%20%22-%2FCooled%22%20or%20%22Heated%2FCooled%22.%26nbsp%3B%3CSPAN%3ENot%20sure%2C%20though%2C%20as%20I%20have%20not%20managed%20to%20go%20through%20all%20of%20them%20in%20detail.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyhow%2C%20I%20hope%20that%20my%20thoughts%20are%20helpful.%20If%20not%2C%20you%20may%20kindly%20ignore%20them.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1127709%22%20slang%3D%22en-US%22%3ERe%3A%20Return%20Address%20of%20Max%20Value%20in%20a%20Range%20--modification%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1127709%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20this%20reply.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20think%20your%20perception%20of%20the%20formulas%20being%20difficult%20to%20manage%20is%20simply%20because%20you%20didn't%20write%20them...%20obviously%2C%20I%20do%20not%20find%20them%20difficult%20to%20read.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOf%20course%20I%20do%20admit%20I%20may%20have%20complicated%20things%20more%20than%20necessary....%20This%20bit%20you%20suggested%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%3DMATCH(MAX(Facility!E16%3AE35)%2CFacility!E16%3AE35%2C0)%2B2%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3BSUPER%20HELPFUL.%20Honestly%2C%20I%20don't%20know%20what%20was%20going%20on%20with%20me%20that%20I%20couldn't%20think%20of%20that.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20find%20your%20other%20suggestions%20irrelevant%20or%20impossible%20for%20what%20I%20need%20to%20get%20done.%20The%20Facility%20and%20Project%20sheets%20are%20filled%20out%20by%2080%2B%20agencies%20out%20in%20the%20US...I%20can't%20control%20how%20data%20is%20input%20into%20them%20and%20I%20can't%20control%20what%20version%20of%20excel%20it%20will%20be%20opened%20on.%20Thus%2C%20the%20max%20floor%20area%20always%20needs%20to%20be%20computed%20and%20I%20can't%20use%20the%20IFS%20function.%20Also%2C%20C16%20on%20the%20QA%20sheet%20needs%20to%20return%207%20different%20messages%20w%2Fo%20using%20IFS--it'll%20remain%20long.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20though!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1127794%22%20slang%3D%22en-US%22%3ERe%3A%20Return%20Address%20of%20Max%20Value%20in%20a%20Range%20--modification%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1127794%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F520173%22%20target%3D%22_blank%22%3E%40shawb%3C%2FA%3E%26nbsp%3BFair%20enough.%20You%20own%20the%20Project%20and%20know%20best%20what%20can%20be%20done%20and%20what%20not.%20Glad%20that%20I%20could%20at%20least%20contribute%20something%20and%20appreciate%20your%20feed-back.%20Have%20nice%20weekend!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1127843%22%20slang%3D%22en-US%22%3ERe%3A%20Return%20Address%20of%20Max%20Value%20in%20a%20Range%20--modification%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1127843%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F520173%22%20target%3D%22_blank%22%3E%40shawb%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20variant%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%3DIFERROR(%0A%20%20%20IF(%0A%20%20%20%20%20%20AND(%0A%20%20%20%20%20%20%20%20%20LOOKUP(2%2C1%2F(Facility!E%2417%3AE%2433%3DMAX(%24B%242%3A%24B%2414))%2CFacility!E%2418%3AE%2434)%3D%22No%22%2C%0A%20%20%20%20%20%20%20%20%20LOOKUP(2%2C1%2F(Facility!E%2417%3AE%2433%3DMAX(%24B%242%3A%24B%2414))%2CFacility!E%2419%3AE%2435)%3D%22No%22%0A%20%20%20%20%20%20)%2C%0A%20%20%20%20%20%20%22Building%20not%20conditioned%22%2C%0A%20%20%20IF(%0A%20%20%20%20%20%20AND(%0A%20%20%20%20%20%20%20%20%20LOOKUP(2%2C1%2F(Facility!E%2417%3AE%2433%3DMAX(%24B%242%3A%24B%2414))%2CFacility!E%2418%3AE%2434)%3D%22Yes%22%2C%0A%20%20%20%20%20%20%20%20%20LOOKUP(2%2C1%2F(Facility!E%2417%3AE%2433%3DMAX(%24B%242%3A%24B%2414))%2CFacility!E%2419%3AE%2435)%3D%22Yes%22%0A%20%20%20%20%20%20)%2C%0A%20%20%20%20%20%20%22Both%22%2C%0A%20%20%20IF(%0A%20%20%20%20%20%20AND(%0A%20%20%20%20%20%20%20%20%20LOOKUP(2%2C1%2F(Facility!E%2417%3AE%2433%3DMAX(%24B%242%3A%24B%2414))%2CFacility!E%2418%3AE%2434)%3D%22Yes%22%2C%0A%20%20%20%20%20%20%20%20%20LOOKUP(2%2C1%2F(Facility!E%2417%3AE%2433%3DMAX(%24B%242%3A%24B%2414))%2CFacility!E%2418%3AE%2434)%3D%22no%22%0A%20%20%20%20%20%20)%2C%0A%20%20%20%20%20%20%22Heated%20Only%22%2C%0A%20%20%20IF(%0A%20%20%20%20%20%20AND(%0A%20%20%20%20%20%20%20%20%20LOOKUP(2%2C1%2F(Facility!E%2417%3AE%2433%3DMAX(%24B%242%3A%24B%2414))%2CFacility!E%2418%3AE%2434)%3D%22Yes%22%2C%0A%20%20%20%20%20%20%20%20%20LOOKUP(2%2C1%2F(Facility!E%2417%3AE%2433%3DMAX(%24B%242%3A%24B%2414))%2CFacility!E%2418%3AE%2434)%3D%22No%22%0A%20%20%20%20%20%20)%2C%0A%20%20%20%20%20%20%22Cooled%20Only%22%2C%0A%20%20%20IF(%0A%20%20%20%20%20%20AND(%0A%20%20%20%20%20%20%20%20%20LOOKUP(2%2C1%2F(Facility!E%2417%3AE%2433%3DMAX(%24B%242%3A%24B%2414))%2CFacility!E%2418%3AE%2434)%3D0%2C%0A%20%20%20%20%20%20%20%20%20LOOKUP(2%2C1%2F(Facility!E%2417%3AE%2433%3DMAX(%24B%242%3A%24B%2414))%2CFacility!E%2419%3AE%2435)%3D0%0A%20%20%20%20%20%20)%2C%0A%20%20%20%20%20%20%22Identify%20if%20building%20cooled%2Fheated%22%2C%0A%20%20%20IF(%0A%20%20%20%20%20%20AND(%0A%20%20%20%20%20%20%20%20%20LOOKUP(2%2C1%2F(Facility!E%2417%3AE%2433%3DMAX(%24B%242%3A%24B%2414))%2CFacility!E%2418%3AE%2434)%3D0%2C%0A%20%20%20%20%20%20%20%20%20LOOKUP(2%2C1%2F(Facility!E%2417%3AE%2433%3DMAX(%24B%242%3A%24B%2414))%2CFacility!E%2419%3AE%2435)%3D%22Yes%22%0A%20%20%20%20%20%20)%2C%0A%20%20%20%22Identify%20if%20building%20heated%22%2C%0A%20%20%20IF(%0A%20%20%20%20%20%20AND(%0A%20%20%20%20%20%20%20%20%20LOOKUP(2%2C1%2F(Facility!E%2417%3AE%2433%3DMAX(%24B%242%3A%24B%2414))%2CFacility!E%2419%3AE%2435)%3D0%2C%0A%20%20%20%20%20%20%20%20%20LOOKUP(2%2C1%2F(Facility!E%2417%3AE%2433%3DMAX(%24B%242%3A%24B%2414))%2CFacility!E%2418%3AE%2434)%3D%22Yes%22%0A%20%20%20%20%20%20)%2C%0A%20%20%20%20%20%20%22Identify%20if%20building%20cooled%22%0A%20%20%20)))))))%2C%0A%20%20%20%22identify%20building%20type%20and%20%25%20of%20floor%20area%22)%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi all,

 

I've programmed a worksheet to run a set of quality assurance checks on data from other sheets in the book... In the attached file, the QA assesses data (view sheet notes for details) on the Facility and Project sheets and uses conditional formatting to highlight flags/concerns. 

 

Starting in C16 on the QA sheet, I'm using the following set of functions within a larger formula to return the address of the building type on the Facility sheet with the largest percent floor area:

INDIRECT(ADDRESS(MATCH(MAX(Facility!E$17,Facility!E$21,Facility!E$25,Facility!E$29,Facility!E$33),Facility!E$1:Facility!E$33,0),COLUMN(E$1),2,1,"Facility"))
So far, this works fine, EXCEPT in one scenario...

 

MY PROBLEM:

Match returns the row number in terms of the lookup array so in order to get "Facility!E17" instead of E1, I believe I need to use the lookup array highlighted above
I run into an issue when the max value (aka lookup value) is 1 (100% floor area is max) because participants can enter 1 as a response in Facility!E13:15 (Feel free to play with the Facility data to see how this affects QA)
I really don't know what I can do differently so I need help!! How can I modify either the formula (preferable) or the cells on the facility tab so that a 1 is distinguishable from 100%? The building type cells have data validation for decimal 0 and 1 and are formatted for percentages. Since the QA sheet needs to be pasted into 60+ similar files, I'd rather not have to do too much manual manipulation to get this resolved. 

5 Replies
Highlighted
How about formatting the input cells as % - then if 1 is entered is displays as 1% whereas the actual value behind it is 0.01 (70% as 0.70 and 100% as 1.00, etc.). I think this should work.
Highlighted
Solution

@shawb 

First, I wonder how you guarantee the quality of your quality assurance checks. Your formulae are, in my opinion, far too complicated, difficult to read, check and maintain. For instance, in sheet QA, cell C16, the formula has 2765 characters. All it does is determine that the largest building is either heated, cooled or both. Finding place number (or index) of the largest percentage in the range where you list the building types (1-5) could be done by the following formula:

 

=MATCH(MAX(Facility!E16:E35),Facility!E16:E35,0)

 

 It will return either 2, 6, 10, 14, or 18. From that point you can "fairly easily" determine the Yes/No for Heating (1 row below) and Cooling (2 rows below). Like so (taking "only" 557 characters):

 

=IFS(AND(INDEX(Facility!E16:E35,MATCH(MAX(Facility!E16:E35),Facility!E16:E35,0)+1,1)="Yes",INDEX(Facility!E16:E35,MATCH(MAX(Facility!E16:E35),Facility!E16:E35,0)+2,1)="Yes"),"Both",AND(INDEX(Facility!E16:E35,MATCH(MAX(Facility!E16:E35),Facility!E16:E35,0)+1,1)="Yes",NOT(INDEX(Facility!E16:E35,MATCH(MAX(Facility!E16:E35),Facility!E16:E35,0)+2,1)="Yes")),"Heated only",AND(NOT(INDEX(Facility!E16:E35,MATCH(MAX(Facility!E16:E35),Facility!E16:E35,0)+1,1)="Yes"),INDEX(Facility!E16:E35,MATCH(MAX(Facility!E16:E35),Facility!E16:E35,0)+2,1)="Yes"),"Cooled only")

 

Still, far from optimal. Using Named ranges with easy to understand names would further reduce the size of this formula.

 

Then, I actually wonder why you not always enter data for the largest building in the first part, so that you can skip the previous step all together. It would probably simplify most of your other formulae as well. Finding the heating/cooling answer could then be like this:

 

=IF(Facility!E18="Yes","Heated","- ")&IF(Facility!E19="Yes","/Cooled","/ -")

 

It will return "Heated/-", "-/Cooled" or "Heated/Cooled". Not sure, though, as I have not managed to go through all of them in detail.

 

Anyhow, I hope that my thoughts are helpful. If not, you may kindly ignore them.

 

 

 

 

Highlighted

@Riny_van_Eekelen 

 

Thanks for this reply. 

 

I think your perception of the formulas being difficult to manage is simply because you didn't write them... obviously, I do not find them difficult to read. 

 

Of course I do admit I may have complicated things more than necessary.... This bit you suggested:

=MATCH(MAX(Facility!E16:E35),Facility!E16:E35,0)+2

 SUPER HELPFUL. Honestly, I don't know what was going on with me that I couldn't think of that. 

 

I find your other suggestions irrelevant or impossible for what I need to get done. The Facility and Project sheets are filled out by 80+ agencies out in the US...I can't control how data is input into them and I can't control what version of excel it will be opened on. Thus, the max floor area always needs to be computed and I can't use the IFS function. Also, C16 on the QA sheet needs to return 7 different messages w/o using IFS--it'll remain long.

 

Thanks though!

 

Highlighted

@shawb Fair enough. You own the Project and know best what can be done and what not. Glad that I could at least contribute something and appreciate your feed-back. Have nice weekend!

 

Highlighted

@shawb 

As variant

=IFERROR(
   IF(
      AND(
         LOOKUP(2,1/(Facility!E$17:E$33=MAX($B$2:$B$14)),Facility!E$18:E$34)="No",
         LOOKUP(2,1/(Facility!E$17:E$33=MAX($B$2:$B$14)),Facility!E$19:E$35)="No"
      ),
      "Building not conditioned",
   IF(
      AND(
         LOOKUP(2,1/(Facility!E$17:E$33=MAX($B$2:$B$14)),Facility!E$18:E$34)="Yes",
         LOOKUP(2,1/(Facility!E$17:E$33=MAX($B$2:$B$14)),Facility!E$19:E$35)="Yes"
      ),
      "Both",
   IF(
      AND(
         LOOKUP(2,1/(Facility!E$17:E$33=MAX($B$2:$B$14)),Facility!E$18:E$34)="Yes",
         LOOKUP(2,1/(Facility!E$17:E$33=MAX($B$2:$B$14)),Facility!E$18:E$34)="no"
      ),
      "Heated Only",
   IF(
      AND(
         LOOKUP(2,1/(Facility!E$17:E$33=MAX($B$2:$B$14)),Facility!E$18:E$34)="Yes",
         LOOKUP(2,1/(Facility!E$17:E$33=MAX($B$2:$B$14)),Facility!E$18:E$34)="No"
      ),
      "Cooled Only",
   IF(
      AND(
         LOOKUP(2,1/(Facility!E$17:E$33=MAX($B$2:$B$14)),Facility!E$18:E$34)=0,
         LOOKUP(2,1/(Facility!E$17:E$33=MAX($B$2:$B$14)),Facility!E$19:E$35)=0
      ),
      "Identify if building cooled/heated",
   IF(
      AND(
         LOOKUP(2,1/(Facility!E$17:E$33=MAX($B$2:$B$14)),Facility!E$18:E$34)=0,
         LOOKUP(2,1/(Facility!E$17:E$33=MAX($B$2:$B$14)),Facility!E$19:E$35)="Yes"
      ),
   "Identify if building heated",
   IF(
      AND(
         LOOKUP(2,1/(Facility!E$17:E$33=MAX($B$2:$B$14)),Facility!E$19:E$35)=0,
         LOOKUP(2,1/(Facility!E$17:E$33=MAX($B$2:$B$14)),Facility!E$18:E$34)="Yes"
      ),
      "Identify if building cooled"
   ))))))),
   "identify building type and % of floor area")