Formula with Conditions

kmpmba

New Member
Joined
Apr 25, 2018
Messages
6
Require urgent assistance - Please assist with the required formula - TIA
open
[TABLE="width: 377"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]FILE 1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Property[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]Length[/TD]
[TD="align: right"]500[/TD]
[/TR]
[TR]
[TD]Breath[/TD]
[TD="align: right"]200[/TD]
[/TR]
[TR]
[TD]Type[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]Requirement Nos.[/TD]
[TD](cell B6 - Answer required here)[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Rules to Calculate answer in B6[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Multiply Length (B3) with Breath (B4)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Divide by area (available in File 2)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]IF Property = D - Double the total at this stage[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Add 10% to Total[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Add 50 Nos. to Total[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FILE 2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]TYPE[/TD]
[TD]Area[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]139.75[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]156.95[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD="align: right"]163.67[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Im assuming File 2 is the name of sheet 2? And also the values in file 2 are in B2, B3 AND B4?

something like this?

=IF(B2="D", ((B3*B4)/INDEX('FILE 2'!B2:B4, MATCH('FILE 1'!B5, 'FILE 2'!A2:A4)))*2*1.1+50, ((B3*B4)/INDEX('FILE 2'!B2:B4, MATCH('FILE 1'!B5, 'FILE 2'!A2:A4)))*1.1+50)
 
Upvote 0
Im assuming File 2 is the name of sheet 2? And also the values in file 2 are in B2, B3 AND B4?

something like this?

=IF(B2="D", ((B3*B4)/INDEX('FILE 2'!B2:B4, MATCH('FILE 1'!B5, 'FILE 2'!A2:A4)))*2*1.1+50, ((B3*B4)/INDEX('FILE 2'!B2:B4, MATCH('FILE 1'!B5, 'FILE 2'!A2:A4)))*1.1+50)

Mant thanks - used this instead =(B3*B4/VLOOKUP(B5,A18:B20,2,0)*IF(B2="D",2,1))*1.1+50
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top