SOLVED
Home

Search formule, in table searching in 2 rows.

%3CLINGO-SUB%20id%3D%22lingo-sub-893453%22%20slang%3D%22en-US%22%3ESearch%20formule%2C%20in%20table%20searching%20in%202%20rows.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-893453%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20everyone%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20want%20to%20make%20an%20automatic%20cell%20with%20a%20formule%2C%20surrounded%20cell%20with%20blue.%20I%20want%20it%20so%20it%20reads%20the%20cell%20in%20front%2C%20underlined%20blue%20in%20the%20table%20on%20the%20right%2C%20surrounded%20with%20red.%20the%20next%20problem%20is%20then%20its%20bases%20on%20the%20number%20in%20front%20of%20the%20comma%2C%20first%20column%20and%20behind%20the%20comma%20top%20row.%20Note%20this%20is%20only%20half%20of%20the%20total%20table!%20This%20is%20the%20biggest%20problem%20cause%20it%20is%20not%20a%20small%20table.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHopefully%20someone%20can%20help%20me!%3C%2FP%3E%3CP%3Ethanks%20in%20advance%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F135433i0413DCE4D34564E9%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Explanation.PNG%22%20title%3D%22Explanation.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-893453%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-893639%22%20slang%3D%22en-US%22%3ERe%3A%20Search%20formule%2C%20in%20table%20searching%20in%202%20rows.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-893639%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F420178%22%20target%3D%22_blank%22%3E%40Jorn_H%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20sounds%20like%20you%20could%20use%20the%20INDEX()%20and%20MATCH()%20functions.%20Read%20more%20here%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2Findex-function-a5dcf0dd-996d-40a4-a822-b56b061328bd%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2Findex-function-a5dcf0dd-996d-40a4-a822-b56b061328bd%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2Fmatch-function-e8dffd45-c762-47d6-bf89-533f4a37673a%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2Fmatch-function-e8dffd45-c762-47d6-bf89-533f4a37673a%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-893715%22%20slang%3D%22en-US%22%3ERe%3A%20Search%20formule%2C%20in%20table%20searching%20in%202%20rows.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-893715%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F360420%22%20target%3D%22_blank%22%3E%40PReagan%3C%2FA%3E%26nbsp%3BThanks%20for%20replaying%2C%20I%20Dont%20know%20how%20those%20two%20formules%20would%20work%20on%20such%20a%20big%20scale%20so%20can%20you%20give%20more%20detail%20please%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-894290%22%20slang%3D%22en-US%22%3ERe%3A%20Search%20formule%2C%20in%20table%20searching%20in%202%20rows.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-894290%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F420178%22%20target%3D%22_blank%22%3E%40Jorn_H%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWould%20you%20mind%20sharing%20a%20sample%20file%20of%20your%20data%20so%20that%20I%20can%20explain%20the%20INDEX()%20and%20MATCH()%20functions%20in%20further%20detail%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-894330%22%20slang%3D%22en-US%22%3ERe%3A%20Search%20formule%2C%20in%20table%20searching%20in%202%20rows.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-894330%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F360420%22%20target%3D%22_blank%22%3E%40PReagan%3C%2FA%3E%26nbsp%3BSo%20what%20needs%20to%20happen%20is%20the%20first%20yellow%20column%2C%20Pmax.%20Needs%20to%20be%20the%20formule.%20The%20value%20it%20needs%20to%20look%20at%20it%20the%20column%20in%20front%2C%20T.%20With%20that%20value%20U%20need%20to%20look%20in%20the%20table%20O3%3BY60.%20I%20dont%20know%20if%20this%20is%20possible%20but%20if%20it%20is%20you%20need%20to%20see%20it%20like%20this%2C%20before%20the%20comma%2C%20first%20example%20-10%20is%20for%20column%20O.%20After%20the%20comma%20is%20for%20row%203%20so%20in%20this%20case%20its%20just%200.%20If%20you%20need%20to%20chance%20any%20of%20this%20do%20it%20I%20just%20want%20it%20to%20work%20somehow!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-894334%22%20slang%3D%22en-US%22%3ERe%3A%20Search%20formule%2C%20in%20table%20searching%20in%202%20rows.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-894334%22%20slang%3D%22en-US%22%3EI%20am%20having%20difficulty%20discovering%20the%20correlation%20between%20the%20T%20value%20(%C2%BAC)%20and%20the%20Pmax%20value%20(Pa).%20How%20is%20it%20that%20you%20determined%20the%20values%20in%20the%20yellow%20column%2C%20Pmax%2C%20from%20the%20previous%20column%2C%20T%3F%20Which%20columns%20in%20the%20O3%3AY60%20table%20should%20each%20T%20value%20direct%20you%20to%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-894354%22%20slang%3D%22en-US%22%3ERe%3A%20Search%20formule%2C%20in%20table%20searching%20in%202%20rows.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-894354%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F360420%22%20target%3D%22_blank%22%3E%40PReagan%3C%2FA%3E%26nbsp%3Bby%20each%20tempature%20there%20is%20a%20value%20for%20the%20saturated%20water%20vapor%20pressure%2C%20what%20stands%20above%20the%20table%20in%20Dutch.%20So%20in%20the%20table%20you%20have%20to%20top%20row%2C%20row%203%2C%20this%20stands%20for%20whats%20behind%20the%20comma%20in%20the%20column%20T%20value%20(%C2%BAC).%20On%20the%20Column%20O%20is%20the%20temperature%20before%20the%20comma%20so%20say%20the%20temperature%20is%2035%2C4%20then%20it%20needs%20to%20find%2035%20in%20column%20O%20and%20then%20in%20row%203%20it%20needs%20to%20find%200%2C4.%20then%20where%20the%20cross%20each%20other%20it%20the%20value%20for%20the%20yellow%20cell.%20so%20in%20this%20case%205784.%20as%20I%20said%20if%20it%20isnt%20possible%20in%20this%20way%20but%20it%20is%20in%20some%20other%20way%20its%20also%20fine.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-894359%22%20slang%3D%22en-US%22%3ERe%3A%20Search%20formule%2C%20in%20table%20searching%20in%202%20rows.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-894359%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F420178%22%20target%3D%22_blank%22%3E%40Jorn_H%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20question%20is%20-%20if%20you%20have%2035.45%2C%20value%20shall%20be%20taken%20from%20column%20T%2C%20or%20from%20column%20U%2C%20or%20calculated%20proportionally%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-894362%22%20slang%3D%22en-US%22%3ERe%3A%20Search%20formule%2C%20in%20table%20searching%20in%202%20rows.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-894362%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F420178%22%20target%3D%22_blank%22%3E%40Jorn_H%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAdditionally%2C%20per%20your%20example%2C%20(unless%20I%20am%20mistaken)%20the%20intersection%20of%2035%20and%200.4%20outputs%205752%20in%20the%20table%20that%20I%20am%20looking%20at.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-894363%22%20slang%3D%22en-US%22%3ERe%3A%20Search%20formule%2C%20in%20table%20searching%20in%202%20rows.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-894363%22%20slang%3D%22en-US%22%3EIts%20should%20round%20up%20to%20the%20tenth%20so%20if%20its%2045%20behind%20its%20rounds%20up%20to%205%20so%20it%20should%20be%20using%20column%20U%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-894366%22%20slang%3D%22en-US%22%3ERe%3A%20Search%20formule%2C%20in%20table%20searching%20in%202%20rows.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-894366%22%20slang%3D%22en-US%22%3EYou%20are%20right%20yes%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-894413%22%20slang%3D%22en-US%22%3ERe%3A%20Search%20formule%2C%20in%20table%20searching%20in%202%20rows.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-894413%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F420178%22%20target%3D%22_blank%22%3E%40Jorn_H%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAnd%20what%20is%20the%20precision%20for%20the%20rounding%20up%3F%20Numbers%20in%20you%20table%20are%20results%20of%20calculations%20which%20shown%20with%202%20digital%20numbers.%20For%20example%2C%2035.4000017%20will%20be%20shown%20as%2034.40%2C%20but%20if%20formally%20round%20up%20decimal%20part%20it%20gives%2035.5.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%20could%20be%20round%20first%20to%20two%20digits%20and%20result%20rounded%20up%20to%201%20digit%2C%20e.g.%26nbsp%3B35.4000017%20-%26gt%3B%2035.40%20-%26gt%3B%2035.40%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-894436%22%20slang%3D%22en-US%22%3ERe%3A%20Search%20formule%2C%20in%20table%20searching%20in%202%20rows.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-894436%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F420178%22%20target%3D%22_blank%22%3E%40Jorn_H%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMaybe%20this%20is%20what%20you're%20after.%20Try%20this%20rather%20lengthy%20formula%20out%20and%20let%20me%20know%20if%20it%20gives%20you%20your%20desired%20results%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20Cell%20G4%3A%3C%2FP%3E%3CP%3E%3DINDEX(%24P%244%3A%24Y%2460%2CMATCH(IF(ABS(ROUND(%24F4-ROUNDDOWN(%24F4%2C)%2C1))%3D1%2CROUNDUP(%24F4%2C)%2CROUNDDOWN(%24F4%2C))%2C%24O%244%3A%24O%2460%2C0)%2CMATCH(IF(ABS(ROUND(%24F4-ROUNDDOWN(%24F4%2C)%2C1))%3D1%2C0%2CABS(ROUND(%24F4-ROUNDDOWN(%24F4%2C)%2C1)))%2C%24P%243%3A%24Y%243%2C0))%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EP.S.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20love%20some%20suggestions%20to%20help%20condense%20this%20formula.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-894437%22%20slang%3D%22en-US%22%3ERe%3A%20Search%20formule%2C%20in%20table%20searching%20in%202%20rows.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-894437%22%20slang%3D%22en-US%22%3EI%20don't%20get%20your%20question%20totally%20so%20pardon%20me%20if%20I%20give%20a%20wrong%20answer.%20In%20your%20example%20you%20use%2035.4000017%20it%20should%20look%20it%20the%202%20numbers%20behind%20the%20comma%20so%20in%20this%20case%2040%20this%20means%20it%20needs%20to%20be%2035%2C4.%20If%20it%20is%2035.4501827%20it%20should%20look%20again%20and%20the%202%20numbers%20behind%20so%2045%20so%20round%20up%20to%205%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-894449%22%20slang%3D%22en-US%22%3ERe%3A%20Search%20formule%2C%20in%20table%20searching%20in%202%20rows.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-894449%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F360420%22%20target%3D%22_blank%22%3E%40PReagan%3C%2FA%3E%26nbsp%3BThanks%20for%20this%20formule%20but%20unfortunatly%20it%20does%20not%20work.%20I%20tried%20to%20see%20the%20evaluation%20from%20the%20formule%20but%20I%20dont%20know%20why%20he%20doesn't%20want%20to%20work.%20so%20can%20you%20please%20take%20a%20look%20at%20it%20if%20I%20missed%20something%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENote%3A%20I%20needed%20to%20rewrite%20the%20formule%20towards%20my%20language%20but%20I%20can%20assure%20that%20is%20right%20so%20far.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DINDEX(%24P%244%3A%24Y%2460%2CVERGELIJKEN(ALS(ABS(AFRONDEN(%24F4-AFRONDEN.NAAR.BENEDEN(%24F4%2C)%2C1))%3D1%2CAFRONDEN.NAAR.BOVEN(%24F4%2C)%2CAFRONDEN.NAAR.BENEDEN(%24F4%2C))%2C%24O%244%3A%24O%2460%2C0)%2CVERGELIJKEN(ALS(ABS(AFRONDEN(%24F4-AFRONDEN.NAAR.BENEDEN(%24F4%2C)%2C1))%3D1%3B0%3BABS(AFRONDEN(%24F4-AFRONDEN.NAAR.BENEDEN(%24F4%2C)%2C1)))%2C%24P%243%3A%24Y%243%2C0))%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20gives%20the%20error%20%23N%2FB.%20I%20found%20out%20it%20give%20it%20when%20a%20formule%20with%20MATCH%20can't%20find%20the%20value%20it's%20looking%20for%2C%20see%20picture.%20After%20this%20stap%20it's%20goes%20to%20%23N%2FB%20on%20the%20position%20where%20it%20says%20AFRONDEN.NAAR.BOVEN%2C%20means%20ROUNDUP.%20So%20maybe%20there%20is%20a%20error%20in%20the%20formule%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-894802%22%20slang%3D%22en-US%22%3ERe%3A%20Search%20formule%2C%20in%20table%20searching%20in%202%20rows.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-894802%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F360420%22%20target%3D%22_blank%22%3E%40PReagan%3C%2FA%3E%26nbsp%3BThanks%20for%20helping%20me%2C%20unfortunately%20it%20doesn't%20work%20I%20get%20an%20error%20at%20the%20first%20IF%20formule%20(ALS%20in%20Dutch).%20It%20happens%20at%20ROUNDUP%20and%20it%20give%20the%20error%20code%20%23N%2FB.%20see%20also%20the%20photo's%20I%20attached.%20So%20down%20here%20is%20the%20formule%20rewritten%20in%20Dutch.%20The%20names%20are%20correct%2C%20maybe%20I%20miss%20a%20)%20or%20a%20%3B%20.%20Hopefully%20you%20can%20help%20because%20it%20looks%20promising!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DINDEX(%24P%244%3A%24Y%2460%2CVERGELIJKEN(ALS(ABS(AFRONDEN(%24F4-AFRONDEN.NAAR.BENEDEN(%24F4%2C)%2C1))%3D1%2CAFRONDEN.NAAR.BOVEN(%24F4%2C)%2CAFRONDEN.NAAR.BENEDEN(%24F4%2C))%2C%24O%244%3A%24O%2460%2C0)%2CVERGELIJKEN(ALS(ABS(AFRONDEN(%24F4-AFRONDEN.NAAR.BENEDEN(%24F4%2C)%2C1))%3D1%2C0%2CABS(AFRONDEN(%24F4-AFRONDEN.NAAR.BENEDEN(%24F4%2C)%2C1)))%2C%24P%243%3A%24Y%243%2C0))%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-894807%22%20slang%3D%22en-US%22%3ERe%3A%20Search%20formule%2C%20in%20table%20searching%20in%202%20rows.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-894807%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F360420%22%20target%3D%22_blank%22%3E%40PReagan%3C%2FA%3E%26nbsp%3BThe%20formule%20works%20for%20the%20positive%20numbers%20but%20it%20does%20not%20work%20for%20negative%20numbers%20so%20for%20the%20first%204%20that%20are%20negative%20it's%20the%20%23N%2FB%20error%20at%20the%20point%20with%20ROUNDUP.%20the%20other%203%20work%2C%20so%20thanks%20for%20that%20already!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEdit%3A%20After%20looking%20around%20I%20found%20out%20the%20negative%20numbers%20had%20an%20other%20'-'%20in%20front%20so%20I%20changed%20those%20and%20it%20works%20now!%20Thank%20you%20so%20much!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-894923%22%20slang%3D%22en-US%22%3ERe%3A%20Search%20formule%2C%20in%20table%20searching%20in%202%20rows.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-894923%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F360420%22%20target%3D%22_blank%22%3E%40PReagan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBit%20shorter%20formula%20could%20be%20if%3C%2FP%3E%0A%3CP%3E1)%20Add%20helper%20column%20to%20the%20vapour%20pressure%20table%20for%201.0%20(copy-pasting%20column%20for%200%20with%20shifting%20on%20one%20row)%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20795px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F135517i3F90CFBAFB079542%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E2)%20Convert%20texts%20for%20negative%20temperature%20to%20numbers%20applying%20custom%20number%20format%26nbsp%3B0%3B-0%3B-0%20to%20show%20%22-0%22%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20316px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F135520iCEC5BE58C610E961%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E3)%20Skip%20MATCH%20on%20columns.%200%3B%200.1%3B%200.2%3B...%20multiplied%20on%2010%20and%20with%20adding%201%20already%20give%20us%20number%20of%20the%20column%20in%20the%20table%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFinally%20it%20could%20be%20like%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%3DINDEX(%24P%244%3A%24Z%2460%2CMATCH(TRUNC(F4)%2C%24O%244%3A%24O%2460%2C0)%2C(10*CEILING(ABS(ROUND(F4-TRUNC(F4)%2C2))%2C0.1)%2B1))%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3BI%20keep%20your%20formula%20results%20in%20green%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20316px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F135521iB3BA695909D4E697%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-894982%22%20slang%3D%22en-US%22%3ERe%3A%20Search%20formule%2C%20in%20table%20searching%20in%202%20rows.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-894982%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBrilliant!%20Thank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-894983%22%20slang%3D%22en-US%22%3ERe%3A%20Search%20formule%2C%20in%20table%20searching%20in%202%20rows.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-894983%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F420178%22%20target%3D%22_blank%22%3E%40Jorn_H%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20pleasure!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-895132%22%20slang%3D%22en-US%22%3ERe%3A%20Search%20formule%2C%20in%20table%20searching%20in%202%20rows.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-895132%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F360420%22%20target%3D%22_blank%22%3E%40PReagan%3C%2FA%3E%26nbsp%3B%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F420178%22%20target%3D%22_blank%22%3E%40Jorn_H%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThank%20you%2C%20but%20I%20did%20one%20mistake.%20At%20least.%20The%20point%20is%20that%20when%20we%20go%20from%20zero%20degreeC%20up%20to%20water%20or%20down%20to%20ice%20vapor%20pressure%20is%20different%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F135541iCD2510DC6A74E7C2%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3BMATCH%20find%20first%20in%20sequence%20row%20with%20zero.%20Thus%20if%20we%20have%20temperature%20below%20the%20zero%20but%20higher%20than%20-1%2C%20we%20have%20to%20jump%20on%20next%20from%20found%20row.%3C%2FP%3E%0A%3CP%3EThus%20I%20updated%20the%20formula%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%3DINDEX(%24P%244%3A%24Z%2460%2CMATCH(TRUNC(F5)%2C%24O%244%3A%24O%2460%2C0)%2B0.5*(1-SIGN(F5))*(TRUNC(F5)%3D0)%2C(10*CEILING(ABS(ROUND(F5-TRUNC(F5)%2C2))%2C0.1)%2B1))%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3Eby%20adding%20to%20MATCH%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%2B0.5*(1-SIGN(F5))*(TRUNC(F5)%3D0)%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EIt%20becomes%20longer%2C%20but%20I%20hope%20more%20correct.%20Result%20is%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20330px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F135542iCE6832CC36679098%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAttached%20file%20is%20corrected%3C%2FP%3E%3C%2FLINGO-BODY%3E
Jorn_H
Occasional Contributor

Hello everyone,

 

I want to make an automatic cell with a formule, surrounded cell with blue. I want it so it reads the cell in front, underlined blue in the table on the right, surrounded with red. the next problem is then its bases on the number in front of the comma, first column and behind the comma top row. Note this is only half of the total table! This is the biggest problem cause it is not a small table.

 

Hopefully someone can help me!

thanks in advanceExplanation.PNG

20 Replies

@PReagan Thanks for replaying, I Dont know how those two formules would work on such a big scale so can you give more detail please?

@Jorn_H 

Would you mind sharing a sample file of your data so that I can explain the INDEX() and MATCH() functions in further detail?

@PReagan So what needs to happen is the first yellow column, Pmax. Needs to be the formule. The value it needs to look at it the column in front, T. With that value U need to look in the table O3;Y60. I dont know if this is possible but if it is you need to see it like this, before the comma, first example -10 is for column O. After the comma is for row 3 so in this case its just 0. If you need to chance any of this do it I just want it to work somehow!

I am having difficulty discovering the correlation between the T value (ºC) and the Pmax value (Pa). How is it that you determined the values in the yellow column, Pmax, from the previous column, T? Which columns in the O3:Y60 table should each T value direct you to?

@PReagan by each tempature there is a value for the saturated water vapor pressure, what stands above the table in Dutch. So in the table you have to top row, row 3, this stands for whats behind the comma in the column T value (ºC). On the Column O is the temperature before the comma so say the temperature is 35,4 then it needs to find 35 in column O and then in row 3 it needs to find 0,4. then where the cross each other it the value for the yellow cell. so in this case 5784. as I said if it isnt possible in this way but it is in some other way its also fine.

 

@Jorn_H 

The question is - if you have 35.45, value shall be taken from column T, or from column U, or calculated proportionally? 

@Sergei Baklan 

@Jorn_H 

Additionally, per your example, (unless I am mistaken) the intersection of 35 and 0.4 outputs 5752 in the table that I am looking at.

Its should round up to the tenth so if its 45 behind its rounds up to 5 so it should be using column U
You are right yes

@Jorn_H 

And what is the precision for the rounding up? Numbers in you table are results of calculations which shown with 2 digital numbers. For example, 35.4000017 will be shown as 34.40, but if formally round up decimal part it gives 35.5. 

It could be round first to two digits and result rounded up to 1 digit, e.g. 35.4000017 -> 35.40 -> 35.40

Solution

@Jorn_H 

Maybe this is what you're after. Try this rather lengthy formula out and let me know if it gives you your desired results:

 

In Cell G4:

=INDEX($P$4:$Y$60,MATCH(IF(ABS(ROUND($F4-ROUNDDOWN($F4,),1))=1,ROUNDUP($F4,),ROUNDDOWN($F4,)),$O$4:$O$60,0),MATCH(IF(ABS(ROUND($F4-ROUNDDOWN($F4,),1))=1,0,ABS(ROUND($F4-ROUNDDOWN($F4,),1))),$P$3:$Y$3,0))

 

P.S.

@Sergei Baklan 

I would love some suggestions to help condense this formula.

I don't get your question totally so pardon me if I give a wrong answer. In your example you use 35.4000017 it should look it the 2 numbers behind the comma so in this case 40 this means it needs to be 35,4. If it is 35.4501827 it should look again and the 2 numbers behind so 45 so round up to 5

@PReagan Thanks for this formule but unfortunatly it does not work. I tried to see the evaluation from the formule but I dont know why he doesn't want to work. so can you please take a look at it if I missed something? 

 

Note: I needed to rewrite the formule towards my language but I can assure that is right so far.

 

=INDEX($P$4:$Y$60,VERGELIJKEN(ALS(ABS(AFRONDEN($F4-AFRONDEN.NAAR.BENEDEN($F4,),1))=1,AFRONDEN.NAAR.BOVEN($F4,),AFRONDEN.NAAR.BENEDEN($F4,)),$O$4:$O$60,0),VERGELIJKEN(ALS(ABS(AFRONDEN($F4-AFRONDEN.NAAR.BENEDEN($F4,),1))=1;0;ABS(AFRONDEN($F4-AFRONDEN.NAAR.BENEDEN($F4,),1))),$P$3:$Y$3,0))

 

It gives the error #N/B. I found out it give it when a formule with MATCH can't find the value it's looking for, see picture. After this stap it's goes to #N/B on the position where it says AFRONDEN.NAAR.BOVEN, means ROUNDUP. So maybe there is a error in the formule

 

@PReagan Thanks for helping me, unfortunately it doesn't work I get an error at the first IF formule (ALS in Dutch). It happens at ROUNDUP and it give the error code #N/B. see also the photo's I attached. So down here is the formule rewritten in Dutch. The names are correct, maybe I miss a ) or a ; . Hopefully you can help because it looks promising!

 

=INDEX($P$4:$Y$60,VERGELIJKEN(ALS(ABS(AFRONDEN($F4-AFRONDEN.NAAR.BENEDEN($F4,),1))=1,AFRONDEN.NAAR.BOVEN($F4,),AFRONDEN.NAAR.BENEDEN($F4,)),$O$4:$O$60,0),VERGELIJKEN(ALS(ABS(AFRONDEN($F4-AFRONDEN.NAAR.BENEDEN($F4,),1))=1,0,ABS(AFRONDEN($F4-AFRONDEN.NAAR.BENEDEN($F4,),1))),$P$3:$Y$3,0))

@PReagan The formule works for the positive numbers but it does not work for negative numbers so for the first 4 that are negative it's the #N/B error at the point with ROUNDUP. the other 3 work, so thanks for that already!

 

Edit: After looking around I found out the negative numbers had an other '-' in front so I changed those and it works now! Thank you so much!

@PReagan 

Bit shorter formula could be if

1) Add helper column to the vapour pressure table for 1.0 (copy-pasting column for 0 with shifting on one row)

image.png

2) Convert texts for negative temperature to numbers applying custom number format 0;-0;-0 to show "-0"

image.png

3) Skip MATCH on columns. 0; 0.1; 0.2;... multiplied on 10 and with adding 1 already give us number of the column in the table

 

Finally it could be like

=INDEX($P$4:$Z$60,MATCH(TRUNC(F4),$O$4:$O$60,0),(10*CEILING(ABS(ROUND(F4-TRUNC(F4),2)),0.1)+1))

 

 I keep your formula results in green

image.png

@Sergei Baklan 

Brilliant! Thank you!

@PReagan , @Jorn_H 

Thank you, but I did one mistake. At least. The point is that when we go from zero degreeC up to water or down to ice vapor pressure is different

image.png

 MATCH find first in sequence row with zero. Thus if we have temperature below the zero but higher than -1, we have to jump on next from found row.

Thus I updated the formula

=INDEX($P$4:$Z$60,MATCH(TRUNC(F5),$O$4:$O$60,0)+0.5*(1-SIGN(F5))*(TRUNC(F5)=0),(10*CEILING(ABS(ROUND(F5-TRUNC(F5),2)),0.1)+1))

by adding to MATCH

+0.5*(1-SIGN(F5))*(TRUNC(F5)=0)

It becomes longer, but I hope more correct. Result is

image.png

Attached file is corrected

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies