INDEX MATCH

%3CLINGO-SUB%20id%3D%22lingo-sub-186507%22%20slang%3D%22en-US%22%3EINDEX%20MATCH%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-186507%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20write%20a%20formula%20based%20on%203%20different%20types%20of%20variables.%20I%20started%20by%20using%20an%20extremely%20long%20If(and%20statement%20and%20eventually%20excel%20wouldn't%20let%20me%20keep%20going.%20You%20can%20see%20what%20I%20was%20typing%20in%20the%20sheet%20I%20attached.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20believe%20that%20I%20need%20to%20use%20Index%20%2F%20Match%20for%20the%203%20variables%20but%20I'm%20not%20sure%20how%20to%20write%20it.%20Basically%2C%20I%20want%20to%20calculate%20the%20Sale%20price%20in%20column%20CH%20based%20on%20the%20city%20(column%20i)%2C%20story%20(column%20BE)%2C%20and%20bedrooms%20(column%20R).%26nbsp%3BWhen%20these%203%20variables%20match%20the%20variables%20in%20the%20assumptions%20tab%20I%20want%20the%20value%20in%20the%20assumptions%20tab%20to%20multiply%20by%20the%20square%20footage%20(column%20BA)%20in%20the%20sold%20tab.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELet%20me%20know%20if%20this%20makes%20sense%20and%20how%20to%20do%20this!%20Thanks%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-186507%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20%26amp%3B%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ENeed%20Help%20formula%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-195366%22%20slang%3D%22en-US%22%3ERe%3A%20INDEX%20MATCH%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-195366%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-195365%22%20slang%3D%22en-US%22%3ERe%3A%20INDEX%20MATCH%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-195365%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%20this%20worked%20well%20for%20me.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-186519%22%20slang%3D%22en-US%22%3ERe%3A%20INDEX%20MATCH%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-186519%22%20slang%3D%22en-US%22%3E%3CP%3EBrady%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3DSUMPRODUCT(CHOOSE(BE2%2Cassumptions!%24C%244%3A%24I%247%2Cassumptions!%24C%2410%3A%24I%2413)*(assumptions!%24B%244%3A%24B%247%3DR2)*(assumptions!%24C%243%3A%24I%243%3DI2))*BA2%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-186516%22%20slang%3D%22en-US%22%3ERe%3A%20INDEX%20MATCH%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-186516%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Brady%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20test%20this%20formula%3A%3C%2FP%3E%3CPRE%3E%3DINDEX((assumptions!%24C%244%3A%24I%247%2Cassumptions!%24C%2410%3A%24I%2413)%2CMATCH(R2%2Cassumptions!%24B%244%3A%24B%247%2C0)%2CMATCH(I2%2Cassumptions!%24C%243%3A%24I%243%2C0)%2CBE2)*BA2%3C%2FPRE%3E%3CP%3EAnd%20find%20it%20the%20attached%20file.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi,

 

I am trying to write a formula based on 3 different types of variables. I started by using an extremely long If(and statement and eventually excel wouldn't let me keep going. You can see what I was typing in the sheet I attached.

 

I believe that I need to use Index / Match for the 3 variables but I'm not sure how to write it. Basically, I want to calculate the Sale price in column CH based on the city (column i), story (column BE), and bedrooms (column R). When these 3 variables match the variables in the assumptions tab I want the value in the assumptions tab to multiply by the square footage (column BA) in the sold tab. 

 

Let me know if this makes sense and how to do this! Thanks  

4 Replies
Highlighted

Hi Brady,

 

Please test this formula:

=INDEX((assumptions!$C$4:$I$7,assumptions!$C$10:$I$13),MATCH(R2,assumptions!$B$4:$B$7,0),MATCH(I2,assumptions!$C$3:$I$3,0),BE2)*BA2

And find it the attached file.

 

Regards

Brady,

 

=SUMPRODUCT(CHOOSE(BE2,assumptions!$C$4:$I$7,assumptions!$C$10:$I$13)*(assumptions!$B$4:$B$7=R2)*(assumptions!$C$3:$I$3=I2))*BA2
Highlighted

Thank you this worked well for me.

Highlighted

Thank you!