Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 15

CELL function

Excel for Microsoft 365 More...


The CELL function returns information about the formatting,
location, or contents of a cell. For example, if you want to
verify that a cell contains a numeric value instead of text
before you perform a calculation on it, you can use the
following formula:
=IF(CELL("type",A1)="v",A1*2,0)
This formula calculates A1*2 only if cell A1 contains a numeric
value, and returns 0 if A1 contains text or is blank.
Note: Formulas that use CELL have language-specific argument values and will return errors if calculated
using a different language version of Excel. For example, if you create a formula containing CELL while
using the Czech version of Excel, that formula will return an error if the workbook is opened using the
French version. If it is important for others to open your workbook using different language versions of
Excel, consider either using alternative functions or allowing others to save local copies in which they
revise the CELL arguments to match their language.

Syntax
CELL(info_type, [reference])
The CELL function syntax has the following arguments:
Argument Description
info_type A text value that specifies what
Required type of cell information you
want to return. The following list
shows the possible values of the
Info_type argument and the
Argument Description
corresponding results.
reference The cell that you want
Optional information about.
If omitted, the information
specified in the info_type
argument is returned for cell
selected at the time of
calculation. If the reference
argument is a range of cells, the
CELL function returns the
information for active cell in the
selected range.
Important: Although technically reference is optional,
including it in your formula is encouraged, unless you
understand the effect its absence has on your formula
result and want that effect in place. Omitting the
reference argument does not reliably produce
information about a specific cell, for the following
reasons:
 In automatic calculation mode, when a cell
is modified by a user the calculation may
be triggered before or after the selection
has progressed, depending on the
platform you're using for Excel. For
example, Excel for Windows currently
triggers calculation before selection
changes, but Excel for the web triggers it
afterward.
 When Co-Authoring with another user
who makes an edit, this function will
report your active cell rather than the
editor's.
 Any recalculation, for instance pressing F9,
will cause the function to return a new
result even though no cell edit has
occurred.
info_type values
The following list describes the text values that can be used
for the info_type argument. These values must be entered in
the CELL function with quotes (" ").
info_type Returns
"address" Reference of the first cell in
reference, as text.
"col" Column number of the cell in
reference.
"color" The value 1 if the cell is
formatted in color for negative
values; otherwise returns 0
(zero).
Note: This value is not supported in Excel for the
web, Excel Mobile, and Excel Starter.

"contents" Value of the upper-left cell in


reference; not a formula.
"filename" Filename (including full path)
of the file that contains
reference, as text. Returns
empty text ("") if the worksheet
that contains reference has not
yet been saved.
Note: This value is not supported in Excel for the
web, Excel Mobile, and Excel Starter.

"format" Text value corresponding to


the number format of the cell.
info_type Returns
The text values for the various
formats are shown in the
following table. Returns "-" at
the end of the text value if the
cell is formatted in color for
negative values. Returns "()" at
the end of the text value if the
cell is formatted with
parentheses for positive or all
values.
Note: This value is not supported in Excel for the
web, Excel Mobile, and Excel Starter.

"parentheses The value 1 if the cell is


" formatted with parentheses for
positive or all values; otherwise
returns 0.
Note: This value is not supported in Excel for the
web, Excel Mobile, and Excel Starter.

"prefix" Text value corresponding to


the "label prefix" of the cell.
Returns single quotation mark
(') if the cell contains left-
aligned text, double quotation
mark (") if the cell contains
right-aligned text, caret (^) if
the cell contains centered text,
backslash (\) if the cell contains
fill-aligned text, and empty text
info_type Returns
("") if the cell contains anything
else.
Note: This value is not supported in Excel for the
web, Excel Mobile, and Excel Starter.

"protect" The value 0 if the cell is not


locked; otherwise returns 1 if
the cell is locked.
Note: This value is not supported in Excel for the
web, Excel Mobile, and Excel Starter.

"row" Row number of the cell in


reference.
"type" Text value corresponding to
the type of data in the cell.
Returns "b" for blank if the cell
is empty, "l" for label if the cell
contains a text constant, and
"v" for value if the cell contains
anything else.
"width" Returns an array with 2 items.
The 1st item in the array is the
column width of the cell,
rounded off to an integer. Each
unit of column width is equal
to the width of one character in
the default font size.
The 2nd item in the array is a
Boolean value, the value is
info_type Returns
TRUE if the column width is the
default or FALSE if the width
has been explicitly set by the
user.
Note: This value is not supported in Excel for the
web, Excel Mobile, and Excel Starter.

CELL format codes


The following list describes the text values that the CELL
function returns when the Info_type argument is "format" and
the reference argument is a cell that is formatted with a built-
in number format.
If the Excel format is The CELL
function
returns
General "G"
0 "F0"
#,##0 ",0"
0.00 "F2"
#,##0.00 ",2"
$#,##0_);($#,##0) "C0"
$#,##0_);[Red]($#,##0) "C0-"
$#,##0.00_);($#,##0.00) "C2"
$#,##0.00_);[Red]($#,##0.00) "C2-"
If the Excel format is The CELL
function
returns
0% "P0"
0.00% "P2"
0.00E+00 "S2"
# ?/? or # ??/?? "G"
m/d/yy or m/d/yy h:mm or "D4"
mm/dd/yy
d-mmm-yy or dd-mmm-yy "D1"
d-mmm or dd-mmm "D2"
mmm-yy "D3"
mm/dd "D5"
h:mm AM/PM "D7"
h:mm:ss AM/PM "D6"
h:mm "D9"
h:mm:ss "D8"
Note: If the info_type argument in the CELL function is "format" and you later apply a different format to
the referenced cell, you must recalculate the worksheet (press F9) to update the results of the CELL
function.
Examples

# -------------------START DATE------------------- #

IF(C$57="","", IF($D$50="Six Monthly", DATE(YEAR(C$57),MONTH(C$57)+6,DAY(C$57))-1,


IF($D$50="Quarterly", DATE(YEAR(C$57),MONTH(C$57)+3,DAY(C$57))-1,
IF($D$50="Monthly",DATE(YEAR(C$57),MONTH(C$57)+1,DAY(C$57))-1,IF($D$50="Fortnightly",
DATE(YEAR(C$57),MONTH(C$57),DAY(C$57))+14,IF($D$50="Weekly",C$57+6, ) )))))

# -------------------FINISH DATE------------------- #

=IF(OR(B$57=$C$49,B$57=""),"", IF($C$50="Six Monthly",


IF(DATE(YEAR(C$57),MONTH(C$57)+6,DAY(C$57))-1>=$C$49,
$C$49,DATE(YEAR(C$57),MONTH(C$57)+6,DAY(C$57))-1), IF($C$50="Quarterly",
IF(DATE(YEAR(C$57),MONTH(C$57)+3,DAY(C$57))-1>=$C$49,
$C$49,DATE(YEAR(C$57),MONTH(C$57)+3,DAY(C$57))-1), IF( $C$50="Monthly",
IF(DATE(YEAR(C$57),MONTH(C$57)+1,DAY(C$57))-1>=$C$49,
$C$49,DATE(YEAR(C$57),MONTH(C$57)+1,DAY(C$57))-1), IF($C$50="Fortnightly", IF(C$57+14 >=$C$49,
$C$49, IF(DAY(C$57)>=16,EOMONTH(C$57,0), Date(Year (C$57),Month(C$57),15))),
IF($C$50="Weekly", IF(C$57+6>=$C$49, $C$49, IF(WEEKNUM(C56)-
WEEKNUM(DATE(YEAR(C56),MONTH(C56),1))+1>3,EOMONTH(C$57,0),C$57+6) ), ) )))))

IF(G$57="","",IF($C$50="Six Monthly",IF(DATE(YEAR(C$57),MONTH(C$57)+6,DAY(C$57))-
1>=$C$49,$C$49,DATE(YEAR(C$57),MONTH(C$57)+6,DAY(C$57))-
1),IF($C$50="Quarterly",IF(DATE(YEAR(C$57),MONTH(C$57)+3,DAY(C$57))-
1>=$C$49,$C$49,DATE(YEAR(C$57),MONTH(C$57)+3,DAY(C$57))-
1),IF($C$50="Monthly",IF(DATE(YEAR(C$57),MONTH(C$57)+1,DAY(C$57))-
1>=$C$49,$C$49,DATE(YEAR(C$57),MONTH(C$57)+1,DAY(C$57))-
1),IF($C$50="Fortnightly",IF(C$57+14>=$C$49,$C$49,IF(DAY(C$57)>=16,EOMONTH(C$57,0),DATE(YEAR
(C$57),MONTH(C$57),15))),IF($C$50="Weekly",IF(C$57+8>=$C$49,$C$49,IF(WEEKNUM(C$57)-
WEEKNUM(DATE(YEAR(C$57),MONTH(C$57),1))+1>3,EOMONTH(C$57,0),C$57+6)), ))))))

=IF($C$50="Weekly",IF(C$57="","",CONCATENATE("Week-", WEEKNUM(C$57)-
WEEKNUM(DATE(YEAR(C$57), MONTH(C$57),1)) ),"FALSE")

=IF($C$50="Six Monthly", IF(C$57="","",


IF(ISERROR(YEAR(B$57)),CONCATENATE(YEAR(C$57),"/",YEAR(C$57)+1),IF(AND(YEAR(C$57)=YEAR(B$5
7)+1,MONTH(C$57)<=6),CONCATENATE(YEAR(C$57)-
1,"/",YEAR(C$57)),CONCATENATE(YEAR(C$57),"/",YEAR(C$57)+1)))) , "QUQRTERLY")

------------SIX MONTHLY, QUARTERLY, MONTHLY-----------

IF(DATE(YEAR(C$57),MONTH(C$57)+INDEX($H$34:$I$39,MATCH($C$50,$H$34:$H$39,0),2),DAY(C$57))
-
1>$C$49,$C$49,DATE(YEAR(C$57),MONTH(C$57)+INDEX($H$34:$I$39,MATCH($C$50,$H$34:$H$39,0),
2),DAY(C$57))-1)

------------------------FORTNIGHTLY, WEEKLY--------------------

IF(DATE(YEAR(C$57),MONTH(C$57),DAY(C$57)
+INDEX($H$34:$I$39,MATCH($C$50,$H$34:$H$39,0),2))>$C$49,$C$49,
DATE(YEAR(C$57),MONTH(C$57),DAY(C$57) +INDEX($H$34:$I$39,MATCH($C$50,$H$34:$H$39,0),2)))

# -------------------FINISH DATE------------------- #

=IF(C$57="","",IF($D$50="Six Monthly",DATE(YEAR(C$57),MONTH(C$57)+6,DAY(C$57))-
1,IF($D$50="Quarterly",DATE(YEAR(C$57),MONTH(C$57)+3,DAY(C$57))-
1,IF($D$50="Monthly",DATE(YEAR(C$57),MONTH(C$57)+1,DAY(C$57))-
1,IF($D$50="Fortnightly",DATE(YEAR(C$57),MONTH(C$57),DAY(C$57))+14,IF($D$50="Weekly",C$57+6,
))))))

# -------------------HEADING------------------- #

=IF($C$50="Six Monthly", IF(C$57="","",


IF(ISERROR(YEAR(B57)),CONCATENATE(YEAR(C57),"/",YEAR(C57)+1),
IF(AND(YEAR(C57)=YEAR(B57)+1,MONTH(C57)<=6),CONCATENATE(YEAR(C57)-
1,"/",YEAR(C57)),CONCATENATE(YEAR(C57),"/",YEAR(C57)+1) )), "")
-----+++++++++++-------------

IF($C$50="Quarterly", IF(C$57="","",
IF(C$57= C$47, CONCATENATE(YEAR(C$57),"/",YEAR(C$57)+1),

IF(YEAR(C$57)=YEAR(B$57, CONCATENATE(YEAR(C$57),"/",YEAR(C$57)+1),

IF(AND(YEAR(C$57)=YEAR(B$57)+1,MONTH(C$57)<=6), CONCATENATE(YEAR(C$57)-1,"/",YEAR(C$57)),
CONCATENATE(YEAR(C$57),"/",YEAR(C$57)+1) ) ))), "")

-----+++++++++++-------------

IF($C$50="Quarterly",IF(C$57="","",IF(AND(MONTH(C$57)>=1,MONTH(C$57)<=3),"3rd Quarter",
IF(AND(MONTH(C$57)>=4,MONTH(C$57)<=6),"4th Quarter",
IF(AND(MONTH(C$57)>=7,MONTH(C$57)<=9),"1st Quarter",
IF(AND(MONTH(C$57)>=10,MONTH(C$57)<=12),"2nd Quarter", ))))))

,# -------------------HEADING------------------- #

=IF($C$50="Quarterly", IF(C$57="","",IF(C$57=C$47, CONCATENATE(YEAR(C$57),"/",YEAR(C$57)+1),


IF(YEAR(C$57)=YEAR(B$57), If(C$56="1st Quarter", CONCATENATE(YEAR(C$57),"/",YEAR(C$57)+1),
CONCATENATE(YEAR(C$57)-1,"/",YEAR(C$57))),

IF(YEAR(C$57)=YEAR(B$57)+1, IF(MONTH(C$57)<=6, CONCATENATE(YEAR(C$57)-1,"/",YEAR(C$57)),


CONCATENATE(YEAR(C$57),"/",YEAR(C$57)+1) ),"")

) ) ), "Not Quarter")

=IF($C$50="Quarterly",IF(C$57="","",IF(C$57=C$47,CONCATENATE(YEAR(C$57),"/",YEAR(C$57)+1),
IF(YEAR(C$57)=YEAR(B$57),IF(OR(C$56="1st Quarter", C$56="2nd Quarter"),
CONCATENATE(YEAR(C$57),"/",YEAR(C$57)+1),CONCATENATE(YEAR(C$57)-
1,"/",YEAR(C$57))),IF(AND(YEAR(C$57)=YEAR(B$57)+1,MONTH(C$57)<=6),CONCATENATE(YEAR(C$57)-
1,"/",YEAR(C$57)),CONCATENATE(YEAR(C$57),"/",YEAR(C$57)+1))))))

=IF(WEEKNUM(C56)-WEEKNUM(DATE(YEAR(C56),MONTH(C56),1))
+1>3,EOMONTH(C56,0),IF(OR(B$57=$C$49,B$57=""),"",
IF($D$50="Months", If( $C$50=1,

CONCATENATE( TEXT(MONTH(C$57)*28,"mmmm"),", ", YEAR(C$57) )

,CONCATENATE( TEXT(MONTH(C$57)*28,"mmmm"),", ", YEAR(C$57),"-",


TEXT(MONTH(C$57)*28,"mmmm"),", ", YEAR(C$57))),”Not months”)

“””””’””””’’’’”””””””””

IF(OR(Index!$B$7="Six Month", Index!$B$7="Quarter"),

IF(1+FLOOR(MOD(MONTH(B$4)-1-Index!$B$6,12)/Index!$B$8,1)>3,
CONCATENATE(1+FLOOR(MOD(MONTH(B$4)-1-Index!$B$6,12)/Index!$B$8,1),"th-",Index!$B$7),

CONCATENATE(INDEX(Index!$A$37:$B$44,MATCH(1+FLOOR(MOD(MONTH(B$4)-1-Index!$B$6,12)/
Index!$B$8,1),Index!$A$37:$A$44,1),2), Index!$B$7)),

“””””””””””””””””””””””

IF(B$4="","",IF(Index!$B$7="Year", Index!$B$7&" Unavailable", IF(OR(Index!$B$7="Six Month", Index!


$B$7="Quarter"),

IF(1+FLOOR(MOD(MONTH(B$4)-1-Index!$B$6,12)/Index!$B$8,1)>3,
CONCATENATE(1+FLOOR(MOD(MONTH(B$4)-1-Index!$B$6,12)/Index!$B$8,1),"th-",Index!$B$7),

CONCATENATE(INDEX(Index!$A$37:$B$44,MATCH(1+FLOOR(MOD(MONTH(B$4)-1-Index!$B$6,12)/
Index!$B$8,1),Index!$A$37:$A$44,1),2), Index!$B$7)),

IF(Index!$B$7="Month", CONCATENATE(IF(COUNTA($B$4:B$4)<=3, CONCATENATE(INDEX(Index!


$A$37:$B$44,MATCH(COUNTA($B$4:B$4),Index!$A$37:$A$44,0),2),Index!
$B$7),CONCATENATE(COUNTA($B$4:B$4),"th-",Index!$B$7))," [",TEXT(IF(MONTH($B$4)>=Index!$B$6,
1+FLOOR(MOD(MONTH(B$4)-1-Index!$B$6,12)/Index!$B$8,1)+Index!
$B$6,1+FLOOR(MOD(MONTH(B$4)-1-Index!$B$6,12)/Index!$B$8,1)-12+Index!
$B$6)*28,"mmmm"),"]"),IF(Index!
$B$7="Fortnight",CONCATENATE(TEXT(MONTH(B$4)*28,"mmmm"),IF(DAY(B$4)>Index!$B$9,"
2nd-"&Index!$B$7," 1st-"&Index!$B$7)),IF(Index!
$B$7="Week",CONCATENATE("Week-",WEEKNUM(B$4)-WEEKNUM(DATE(YEAR(B$4),MONTH(B$4),1))
+1),""))))))

“””””””””””’’’
IF(B$4="","",IF(Index!$B$7="Year", Index!$B$7&" Unavailable", IF(OR(Index!$B$7="Six Month", Index!
$B$7="Quarter"), IF(1+FLOOR(MOD(MONTH(B$4)-1-Index!$B$6,12)/Index!$B$8,1)>3,
CONCATENATE(1+FLOOR(MOD(MONTH(B$4)-1-Index!$B$6,12)/Index!$B$8,1),"th-",Index!
$B$7),CONCATENATE(INDEX(Index!$A$37:$B$44,MATCH(1+FLOOR(MOD(MONTH(B$4)-1-Index!
$B$6,12)/Index!$B$8,1),Index!$A$37:$A$44,1),2), Index!$B$7)),IF(Index!$B$7="Month",
CONCATENATE(IF(COUNTA($B$4:B$4)<=3, CONCATENATE(INDEX(Index!
$A$37:$B$44,MATCH(COUNTA($B$4:B$4),Index!$A$37:$A$44,0),2),Index!
$B$7),CONCATENATE(COUNTA($B$4:B$4),"th-",Index!$B$7))," [",TEXT(IF(MONTH($B$4)>=Index!$B$6,
1+FLOOR(MOD(MONTH(B$4)-1-Index!$B$6,12)/Index!$B$8,1)+Index!
$B$6,1+FLOOR(MOD(MONTH(B$4)-1-Index!$B$6,12)/Index!$B$8,1)-12+Index!
$B$6)*28,"mmmm"),"]"),IF(Index!
$B$7="Fortnight",CONCATENATE(TEXT(MONTH(B$4)*28,"mmmm"),IF(DAY(B$4)>Index!$B$9,"
2nd-"&Index!$B$7," 1st-"&Index!$B$7)),IF(Index!
$B$7="Week",CONCATENATE("Week-",WEEKNUM(B$4)-WEEKNUM(DATE(YEAR(B$4),MONTH(B$4),1))
+1),""))))))

IF(B$4="","",IF(Index!$B$7="Year", Index!$B$7&" Unavailable",


IF(OR(Index!$B$7="Six Month",Index!$B$7="Quarter"),INDEX(Index!
$A$27:$B$38,MATCH(1+FLOOR(MOD(MONTH(B$4)-1-Index!$B$6,12)/Index!$B$8,1),Index!
$A$27:$A$38,1),2)&Index!$B$7, IF(Index!$B$7="Month",
CONCATENATE(INDEX(Index!$A$27:$B$38,MATCH(1+FLOOR(MOD(MONTH(B$4)-1-Index!$B$6,12)/
Index!$B$8,1),Index!$A$27:$A$38,1),2),Index!$B$7," [",TEXT(IF(MONTH($B$4)>=Index!
$B$6,1+FLOOR(MOD(MONTH(B$4)-1-Index!$B$6,12)/Index!$B$8,1)+Index!
$B$6,1+FLOOR(MOD(MONTH(B$4)-1-Index!$B$6,12)/Index!$B$8,1)-12+Index!
$B$6)*28,"mmmm"),"]")," >>>> "))))

TIME INTERVAL BEGINS @ MONTH :

IF MONTH - MOD( MONTH – YE + 11 , TR ) <= 0,


12 + MONTH - MOD( MONTH – YE + 11 , TR ) ,
ELSE
MONTH - MOD( MONTH + 11 – YE , TR ) )
END

THE FIRST MONTH OF A QUARTER IF YEAR ENDS AT MONTH M

For YEAR ENDING in 1 (Dec) :

Case of ODD Month

If Reference MONTH = 1
1st MONTH OF THE QUARTER = 1- MOD(1+11-1, 3) = 1 – 2 = -1 # 11
If Reference MONTH = 5
1st MONTH OF THE QUARTER = 5- MOD(5+11-1, 3) = 5 – 0 = 5

If Reference MONTH = 11
1st MONTH OF THE QUARTER = 11- MOD(11+11-1, 3) = 11 – 0 = 11

Case of EVEN Month

If Reference MONTH = 2
1st MONTH OF THE QUARTER = 2- MOD(2+11-12, 3) = 2 – 1 = 1

If Reference MONTH = 6
1st MONTH OF THE QUARTER = 6- MOD(6+11-12, 3) = 6 – 2 = 4

If Reference MONTH = 12
1st MONTH OF THE QUARTER = 12- MOD(12+11-12, 3) = 12 – 2 =10

For YEAR ENDING in 12 (Dec) :

Case of ODD Month

If Reference MONTH = 1
1st MONTH OF THE QUARTER = 1- MOD(1+11-12, 3) = 1 – 0 = 1

If Reference MONTH = 5
1st MONTH OF THE QUARTER = 5- MOD(5+11-12, 3) = 5 – 1 = 4

If Reference MONTH = 7
1st MONTH OF THE QUARTER = 7- MOD(7+11-12, 3) = 7 – 0 = 7

If Reference MONTH = 9
1st MONTH OF THE QUARTER = 9- MOD(9+11-12, 3) = 9 – 2 = 9

Case of EVEN Month

If Reference MONTH = 2
1st MONTH OF THE QUARTER = 2- MOD(2+11-12, 3) = 2 – 1 = 1

If Reference MONTH = 6
1st MONTH OF THE QUARTER = 6- MOD(6+11-12, 3) = 6 – 2 = 4

If Reference MONTH = 12
1st MONTH OF THE QUARTER = 12- MOD(12+11-12, 3) = 12 – 2 =10
=IF(MONTH($B$4)>=Index!$B$6, TEXT((1+FLOOR(MOD(MONTH(B$4)-1-Index!$B$6,12)/Index!
$B$8,1)+Index!$B$6)*28,"mmm"),

TEXT((1+FLOOR(MOD(MONTH(B$4)-1-Index!$B$6,12)/Index!$B$8,1)-12+Index!$B$6)*28,"mmm") )

C11 : Activity Start Date

KC4 : Week Start Date

$H11 : Total Planned Quantity

$R11 : Activity Duration (days)

=IF(Activity Start Date > Week Start Date, 0,

IF((Total Planned Quantity -JU11-JM11-JE11-IW11-IO11-IG11-HY11-HQ11-HI11-HA11-GS11-GK11-GC11-


FU11-FM11-FE11-EW11-EO11-EG11-DY11-DQ11-DI11-DA11-CS11-CK11-CC11-BU11-BM11-BE11-AW11-
AO11-AG11-Y11)<=0, 0,

IF(R11<=0, 0,
IF(($H11-JU11-JM11-JE11-IW11-IO11-IG11-HY11-HQ11-HI11-HA11-GS11-GK11-GC11-FU11-FM11-FE11-
EW11-EO11-EG11-DY11-DQ11-DI11-DA11-CS11-CK11-CC11-BU11-BM11-BE11-AW11-AO11-AG11-
Y11)<KC$5/$R11*($H11),($H11-JU11-JM11-JE11-IW11-IO11-IG11-HY11-HQ11-HI11-HA11-GS11-GK11-
GC11-FU11-FM11-FE11-EW11-EO11-EG11-DY11-DQ11-DI11-DA11-CS11-CK11-CC11-BU11-BM11-BE11-
AW11-AO11-AG11-Y11), KC$5/$R11*($H11) ))))

$C11 : Activity Start Date = ASD

$H11 : Total Planned Quantity = TPQ

$R11 : Activity Duration (days) = AD

Y$4 : Week Start Date = WSD

Y$5 : Number of Working Days in the Week = WD

SUM($Y$5 :Y$5) : Summation of Working Days up to Current Week =SWD

=IF(ASD > WSD, 0,

IF(TPQ <=0, 0,

IF(AD <=0, 0,

IF(WD <=0, 0,

IF( SWD <=AD , TPQ *( 1-(SWD-WD)/ AD ) / ( WD / AD),

TPQ *( 1-(SWD-WD)/ AD ) )

))))

You might also like