Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi HAve a problem: I am require to take out the ppl who pass certain subject with the formula. I am stuck in the last part I am require to print out in words who have pass certain subject. Example A B C D 1 math English Science 2 Max 90 40 30 3 Rick 80 30 70 4 May 40 80 90 5 June 80 70 60 6 David 40 60 70 By using "If" function for result 50 I got this E F G 2 1 0 0 3 1 0 1 4 0 1 1 5 1 1 1 6 0 1 1 Than by creating a table for Vlookup to return for the number : So that they can print out the words using Vlookup. A B C D 10 0 0 0 Fail all subject 11 0 0 1 Pass Science 12 0 1 0 Pass English 13 0 1 1 Pass English and Science 14 1 0 0 Pass Math 15 1 0 1 Pass Math and Science 16 1 1 0 Pass Math and English 17 1 1 1 Pass all subject But Vlookup cannot look for a matching more than a cell. Over here they need to look for three matching cell in a row in order to reflect the value. I turn with this formula VLOOKUP(E2:G2,A10:D17,2,FALSE) But the resule come out "#VALUE!" Pls help. Any other formula i can use. Or i need to add some stuff to Vlookup . *** Sent via Developersdex http://www.developersdex.com *** |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I created a table in A1:B8 of sheet2 that looked like:
000 Fail all subject 001 Pass Science 010 Pass English 011 Pass English and Science 100 Pass Math 101 Pass Math and Science 110 Pass Math and English 111 Pass all subject I formatted column A as text before I typed in that data--I didn't want the values treated as number, I wanted them Text. Then in E2 of sheet1, I put this formula: =VLOOKUP(--(B250)&--(C250)&--(D250),Sheet2!A:B,2,FALSE) --(b250) will return 0 or 1 (same with --(c250) and --(d250)) And the & means that the concatenation will be text--to match what's in column A of Sheet2. Joe Ng wrote: Hi HAve a problem: I am require to take out the ppl who pass certain subject with the formula. I am stuck in the last part I am require to print out in words who have pass certain subject. Example A B C D 1 math English Science 2 Max 90 40 30 3 Rick 80 30 70 4 May 40 80 90 5 June 80 70 60 6 David 40 60 70 By using "If" function for result 50 I got this E F G 2 1 0 0 3 1 0 1 4 0 1 1 5 1 1 1 6 0 1 1 Than by creating a table for Vlookup to return for the number : So that they can print out the words using Vlookup. A B C D 10 0 0 0 Fail all subject 11 0 0 1 Pass Science 12 0 1 0 Pass English 13 0 1 1 Pass English and Science 14 1 0 0 Pass Math 15 1 0 1 Pass Math and Science 16 1 1 0 Pass Math and English 17 1 1 1 Pass all subject But Vlookup cannot look for a matching more than a cell. Over here they need to look for three matching cell in a row in order to reflect the value. I turn with this formula VLOOKUP(E2:G2,A10:D17,2,FALSE) But the resule come out "#VALUE!" Pls help. Any other formula i can use. Or i need to add some stuff to Vlookup . *** Sent via Developersdex http://www.developersdex.com *** -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
excel function solve problem? | Excel Worksheet Functions | |||
how can I solve this problem? Please help me | Excel Discussion (Misc queries) | |||
How do I solve a vlookup when multiple records are available? | Excel Worksheet Functions | |||
How to solve this problem? | Excel Programming | |||
Problem when multipple users access shared xl-file at the same time, macrocode for solve this problem? | Excel Programming |