quikieemart
New Member
- Joined
- Jul 13, 2010
- Messages
- 35
Hello,
It would be great if anyone could help me =]
So sheet 1 has a list of chemical codes and next to each chemical code shows its corresponding quanityt. I want cell A2 in sheet 2 to look at A1 of sheet 2 (a specific year: 2007), and if this is the correct year then I want A2 of sheet 2 to look at A2:B4 of sheet 1 and return the chemical name (A2:A4 sheet 1) ONLY if its corresponding quantity (B2:B4) is between 1 and 3: (1 <= qty < 3)
EX:
(SHEET 2)
A
1 2007
2 =function
(SHEET 1)
A B
1 chemical quantity
2 510 A 2.1
3 53 4.3
4 77526 1.83
I have this so far: (SHEET 2: A2)
=IF(AND(IF($A$1=2007,'SHEET 1'!$A2),('SHEET 1'!$B2)>=1),'SHEET 1'!$A2)
I tried to add another 'and' function in there to have a return that's less than quantity 3, but I couldn't figure it out.
Thanks,
Huan
It would be great if anyone could help me =]
So sheet 1 has a list of chemical codes and next to each chemical code shows its corresponding quanityt. I want cell A2 in sheet 2 to look at A1 of sheet 2 (a specific year: 2007), and if this is the correct year then I want A2 of sheet 2 to look at A2:B4 of sheet 1 and return the chemical name (A2:A4 sheet 1) ONLY if its corresponding quantity (B2:B4) is between 1 and 3: (1 <= qty < 3)
EX:
(SHEET 2)
A
1 2007
2 =function
(SHEET 1)
A B
1 chemical quantity
2 510 A 2.1
3 53 4.3
4 77526 1.83
I have this so far: (SHEET 2: A2)
=IF(AND(IF($A$1=2007,'SHEET 1'!$A2),('SHEET 1'!$B2)>=1),'SHEET 1'!$A2)
I tried to add another 'and' function in there to have a return that's less than quantity 3, but I couldn't figure it out.
Thanks,
Huan