Formula Translation?

milwphil

Board Regular
Joined
Aug 1, 2010
Messages
120
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:
Code:
=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
 

Some videos you may like

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.

mancemonster

Board Regular
Joined
Feb 24, 2011
Messages
89
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..
 

Watch MrExcel Video

Forum statistics

Threads
1,123,087
Messages
5,599,654
Members
414,325
Latest member
kfg1287

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