N
newbie
Could someone help me understand what this code snippet is doing? I am
new at this and just learning. I am trying to comment this code to
understand what is happening but its not completely correct.
=IF(COUNTIF(Promotion!$A$2:$A$41,A7)>1,LOOKUP(2,1/(Promotion!$A$2:$A
$41=A7),Promotion!$C$2:$C$41),"")
=IF
(COUNTIF
(Promotion!$A$2:$A$41,A7)>1,
comments:
range is defined and is compared to cell A7 which is person id, if
person id is found more than once, then
LOOKUP(2,1/(Promotion!$A$2:$A$41=A7),
comments:
The syntax for the Lookup function is:
Lookup( value, lookup_range, result_range )
2 , 1/A$2:$A$41=A7
So it looks like the look up looks for 2 and then why 1/lookup range?
what does this do for you?
Promotion!$C$2:$C$41),
comments:
"")
comments:
Does "" mean if the condition isnt met u get "" or no data printed?
new at this and just learning. I am trying to comment this code to
understand what is happening but its not completely correct.
=IF(COUNTIF(Promotion!$A$2:$A$41,A7)>1,LOOKUP(2,1/(Promotion!$A$2:$A
$41=A7),Promotion!$C$2:$C$41),"")
=IF
(COUNTIF
(Promotion!$A$2:$A$41,A7)>1,
comments:
range is defined and is compared to cell A7 which is person id, if
person id is found more than once, then
LOOKUP(2,1/(Promotion!$A$2:$A$41=A7),
comments:
The syntax for the Lookup function is:
Lookup( value, lookup_range, result_range )
2 , 1/A$2:$A$41=A7
So it looks like the look up looks for 2 and then why 1/lookup range?
what does this do for you?
Promotion!$C$2:$C$41),
comments:
"")
comments:
Does "" mean if the condition isnt met u get "" or no data printed?