# IF Formula Query

#### broncos347

##### Active Member
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

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
To my knowledge you can only have 7 IF statements in any IF formula

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.

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".

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.

Replies
10
Views
209
Replies
1
Views
316
Replies
1
Views
327
Replies
3
Views
198
Replies
4
Views
68

1,218,756
Messages
6,144,302
Members
450,536
Latest member
DavidRankin

### 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.

### Which adblocker are you using?

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

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