PC Review


Reply
Thread Tools Rate Thread

Don't Understand Code

 
 
miracleblake
Guest
Posts: n/a
 
      8th Dec 2005

Can anyone help me to understand this code? I am confused about which
table information is coming from, as well as the sum function?

=IF($F13="CV",SUM((AI13)*(VLOOKUP((VALUE(T_DATE_YEAR)-3)&$C13,'C:\COST
ESTIMATE WORKSHEET\CEW REF.XLS'!PAYSCALE,$D13+23)))/1000,0)


--
miracleblake
------------------------------------------------------------------------
miracleblake's Profile: http://www.excelforum.com/member.php...o&userid=29487
View this thread: http://www.excelforum.com/showthread...hreadid=491890

 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      8th Dec 2005
Pretty simple.


If F13 has the value "CV"
multiply AI13 by the value looked up
Else
set to 0
End

--

HTH

RP
(remove nothere from the email address if mailing direct)


"miracleblake" <(E-Mail Removed)>
wrote in message
news:(E-Mail Removed)...
>
> Can anyone help me to understand this code? I am confused about which
> table information is coming from, as well as the sum function?
>
> =IF($F13="CV",SUM((AI13)*(VLOOKUP((VALUE(T_DATE_YEAR)-3)&$C13,'C:\COST
> ESTIMATE WORKSHEET\CEW REF.XLS'!PAYSCALE,$D13+23)))/1000,0)
>
>
> --
> miracleblake
> ------------------------------------------------------------------------
> miracleblake's Profile:

http://www.excelforum.com/member.php...o&userid=29487
> View this thread: http://www.excelforum.com/showthread...hreadid=491890
>



 
Reply With Quote
 
miracleblake
Guest
Posts: n/a
 
      8th Dec 2005

The value in field AI13 is 15.0

How does the second section equate. Unclear: The information based of
of another worksheet (CEW REF.XLS)

$D13 + 23 )))/1000.

--
miracleblak
-----------------------------------------------------------------------
miracleblake's Profile: http://www.excelforum.com/member.php...fo&userid=2948
View this thread: http://www.excelforum.com/showthread.php?threadid=49189

 
Reply With Quote
 
JE McGimpsey
Guest
Posts: n/a
 
      8th Dec 2005
First

=IF($F13="CV", TRUE branch, FALSE branch)

The FALSE branch is 0, so if $F13<>"CV", the function will return 0.

If $F3 does = "CV":

SUM(...)/1000

the SUM() is superfluous and can be eliminated. The result of

AI13 * VLOOKUP(X, Y, Z)

is divided by 1000.

The VLOOKUP searrches for X in the first column of table Y, and returns
the corresponding value found in column Z of table Y.

X = (VALUE(T_DATE_YEAR)-3) & $C13
hard to know what T_DATE_YEAR is: it could be a value expressed as a
defined name, or it could be a reference to a cell which contains a
value. See Insert/Name/Define to see its definition.

Y = PAYSCALE is a named range in workbook 'CEW REF.XLS' in directory
C:\COST ESTIMATE WORKSHEET. Open that workbook, use Insert/Name/Define
to find out what range is referred to.

Z = $D13 + 23, which should be pretty straightforward.





In article <(E-Mail Removed)>,
miracleblake
<(E-Mail Removed)> wrote:

> Can anyone help me to understand this code? I am confused about which
> table information is coming from, as well as the sum function?
>
> =IF($F13="CV",SUM((AI13)*(VLOOKUP((VALUE(T_DATE_YEAR)-3)&$C13,'C:\COST
> ESTIMATE WORKSHEET\CEW REF.XLS'!PAYSCALE,$D13+23)))/1000,0)

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I am trying to understand this code... Henry Stock Microsoft Frontpage 3 27th Jul 2008 09:59 PM
Please. Help me understand this code Viper Microsoft Access 4 29th Jan 2007 08:59 PM
Help - Can't understand Code =?Utf-8?B?QW5nZWxpbmU=?= Microsoft Access Forms 8 29th Mar 2006 01:36 PM
Help me understand this code Carrot Microsoft Excel Misc 2 14th Oct 2005 07:07 AM
Code I don't Understand Mary/Phil Stewart Microsoft Access 4 11th Feb 2004 06:39 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:08 PM.