Understanding the formula

ExcelRoy

Well-known Member
Joined
Oct 2, 2006
Messages
2,540
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have the following formula I am trying to understand

=IF(IF(ROWS($EC$16:EC16)>$EO$14,"",INDEX($DU$16:$DU$512,MATCH(ROWS($EC$16:EC16),$EO$16:$EO$512,0)))=0,"",IF(ROWS($EC$16:EC16)>$EO$14,"",INDEX($DU$16:$DU$512,MATCH(ROWS($EC$16:EC16),$EO$16:$EO$512,0))))

the $DU$16:$DU$512 part is what is being returned, but I am struggling to understand the $EC$16:EC16 part ?

Many thanks for any help
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hi,

I have the following formula I am trying to understand

=IF(IF(ROWS($EC$16:EC16)>$EO$14,"",INDEX($DU$16:$DU$512,MATCH(ROWS($EC$16:EC16),$EO$16:$EO$512,0)))=0,"",IF(ROWS($EC$16:EC16)>$EO$14,"",INDEX($DU$16:$DU$512,MATCH(ROWS($EC$16:EC16),$EO$16:$EO$512,0))))

the $DU$16:$DU$512 part is what is being returned, but I am struggling to understand the $EC$16:EC16 part ?

Many thanks for any help


i dunno, I'm assuming Its the reference cell you wanted to compare with EO14? it can be written simply as EC16 or $EC$16 in that formula's case tho...
 
Upvote 0
Ok thanks Panda,

Could this formula be modified to only return the $DU$16:$DU$512 part of the formula if CA16="ST"

Thanks
 
Upvote 0
Hi,

I have the following formula I am trying to understand

=IF(IF(ROWS($EC$16:EC16)>$EO$14,"",INDEX($DU$16:$DU$512,MATCH(ROWS($EC$16:EC16),$EO$16:$EO$512,0)))=0,"",IF(ROWS($EC$16:EC16)>$EO$14,"",INDEX($DU$16:$DU$512,MATCH(ROWS($EC$16:EC16),$EO$16:$EO$512,0))))

the $DU$16:$DU$512 part is what is being returned, but I am struggling to understand the $EC$16:EC16 part ?

Many thanks for any help

Hi,

The following:

Code:
ROWS($EC$16:EC16)

Will return an incremental count as the formula is copied down, i.e. 1, 2, 3, 4, 5, etc.

Matty
 
Upvote 0
Ah ok, thanks Matty,

so effectively the ROWS($EC$16:EC16) could be any other row?

Could this formula be modified to only return the $DU$16:$DU$512 part of the formula if CA16="ST"

Thanks Again
 
Upvote 0
Ah ok, thanks Matty,

so effectively the ROWS($EC$16:EC16) could be any other row?

Could this formula be modified to only return the $DU$16:$DU$512 part of the formula if CA16="ST"

Thanks Again

In short, yes. But it would be best if you could share a small example of your data so that we can see what you're trying to do.

Matty
 
Upvote 0
Hi,

Upon reflection of my request it should be

$CA$16:$CA$512 ="ST" and $CD$16:$CD$512 ="ST"

Thanks
 
Upvote 0
Hi Matty,

EO14 = =MAX($EO$16:$EO$512)
EO16 = =SUM($EO15,OR($EM16=$EO$6,$EM16=$EO$7,$EM16=$EO$8)) (Dragged down to EO512)

EP16 = =IF(IF(ROWS($EC$16:EC16)>$EO$14,"",INDEX($DU$16:$DU$512,MATCH(ROWS($EC$16:EC16),$EO$16:$EO$512,0)))=0,"",IF(ROWS($EC$16:EC16)>$EO$14,"",INDEX($DU$16:$DU$512,MATCH(ROWS($EC$16:EC16),$EO$16:$EO$512,0))))

EC16 = =IFERROR(IF('Parts Requisition'!B16="","",IF(D16="","",D16)),"")
DU16 = =IFERROR(IF('Parts Requisition'!B16="","",IF($X$4="","",$X$4)),"")

Basically the columns DU-EN contain parts details as a complete order
EP-FF I need to have only the outstanding parts listed which I already have working fine

The only change I would like now is if CA16:CA16 has "ST" in it then it not to be considered an outstanding part

Can I send you the sheet I am working on?

Thanks
 
Upvote 0

Forum statistics

Threads
1,215,259
Messages
6,123,919
Members
449,135
Latest member
NickWBA

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