IF Formula Query

broncos347

Active Member
Joined
Feb 16, 2005
Messages
282
Can anyone help me?

I have a formula to calculate risks (see below), however, I have only managed to do one column of a table and have a further 4 columns to go. If I copy any paste the formula so far in to the formula it says the formula is to long.

What I would like to do is complete the formula for the register is to change the cells B6, D8 and D6. B6 and D8 contain text while D6 contains a number.

=IF(D4='Risk Assessment Matrix'!B6,IF('Risk Log'!E4='Risk Assessment Matrix'!D8,'Risk Assessment Matrix'!D6),IF(D4='Risk Assessment Matrix'!B5,IF('Risk Log'!E4='Risk Assessment Matrix'!D8,'Risk Assessment Matrix'!D5),IF(D4='Risk Assessment Matrix'!B4,IF('Risk Log'!E4='Risk Assessment Matrix'!D8,'Risk Assessment Matrix'!D4),IF(D4='Risk Assessment Matrix'!B3,IF('Risk Log'!E4='Risk Assessment Matrix'!D8,'Risk Assessment Matrix'!D3),IF(D4='Risk Assessment Matrix'!B2,IF('Risk Log'!E4='Risk Assessment Matrix'!D8,'Risk Assessment Matrix'!D2),IF(D4='Risk Assessment Matrix'!B1,IF('Risk Log'!E4='Risk Assessment Matrix'!D8,'Risk Assessment Matrix'!D1),
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

fairwinds

MrExcel MVP
Joined
May 15, 2003
Messages
8,638
Hi,

I do not understand what you want to change but I believe your current formula can be shortened to:

=IF('Risk Log'!E4='Risk Assessment Matrix'!D8,INDEX('Risk Assessment Matrix'!D1:D6,MATCH(D4,'Risk Assessment Matrix'!B1:B6,0)))

Thus you might be able to adapt your changes without make the formula too long.
 

broncos347

Active Member
Joined
Feb 16, 2005
Messages
282
Fairwinds, nearly there. However, I need to pull a figure out of the D1 to D6 range. The figures are 1, 3, 6, 10, 14, 16.

The current formula you have given returns a "FALSE".
 

fairwinds

MrExcel MVP
Joined
May 15, 2003
Messages
8,638
The current formula you have given returns a "FALSE".

That is because 'Risk Log'!E4 "does not equal" 'Risk Assessment Matrix'!D8 and I don't know what should happen if that is the case. Add this to the end of the formula.
 

Forum statistics

Threads
1,136,619
Messages
5,676,847
Members
419,655
Latest member
pd2021vb

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
Top