# Formula Translation?

#### milwphil

##### Board Regular
Good morning!

I'm attempting to understand a formula in a spreadsheet and I'm getting lost in an endless black hole of IF Statements/cell references and named ranges.

Can anyone help me translate this formula to logical English:
PHP:
``=IF(C37=0,"",IF(OV!AC8=5,"Contact",IF(AND(NRen="New",I37>VLOOKUP(OV!AC8&OV!T8,'ML Tables'!\$AJ\$3:\$AN\$26,IF(OV!Z8<0.85,5,4),0)),"Before",VLOOKUP(I37,OFFSET('ML Tables'!\$AP\$2,MATCH(OV!AC8,'ML Tables'!\$AP\$2:\$AP\$15,0)-1,1,COUNTIF('ML Tables'!\$AP\$2:\$AP\$15,OV!AC8),3),2,1))))``

Thanks,
Phil

### Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
If C37=0 put blank ""
If Not...

Does OV!AC8=5 If Yes put Contract
If not

Does NRen="New" and is I37 larger than..... (OV!AC8&OV!T8 merges 2 cells values together I.E. Cell AC8 has value 1 Cell T8 has value 2 AC8&T8 = 12). The Vlookup then goes to 'ML Tables'!\$AJ\$3:\$AN\$26 to find AC8&T8.

It Returns either the 4th or 5th column value of this range (5th if OV!Z8<0.85, 4th otherwise)

If this value is larger than I37 and Nren="New" then it Returns "Before"
If not...

Look for I37

Starting cell is 'ML Tables'!\$AP\$2, but moved (MATCH(OV!AC8,'ML Tables'!\$AP\$2:\$AP\$15,0)-1) Rows up (If -tve) or down (If +tive), and 1 column right.

Then looking in an area (COUNTIF('ML Tables'!\$AP\$2:\$AP\$15,OV!AC8)) High to 3 columns wide.

Returning the third value...

Sorry this gets a bit messy towards the halfway - end of my explenation...

Hope this helps..

Thank you! This helps a ton!!

Replies
3
Views
151
Replies
0
Views
402
Replies
3
Views
352
Replies
3
Views
309
Replies
3
Views
462

1,217,346
Messages
6,136,044
Members
449,981
Latest member
kjd513

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

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