![]() |
#1
|
|||
|
|||
![]()
Hi,
I have been using excel help function but not getting my intended results; I always receive data in EXCEL as follows: · Column A = RL (145 · Column B = ROCKGROUP (GKSAP) · Column C = GRADEGROUP (WASTE) · Column D = Volume (1582.236) · Column A = RL (145 · Column B = ROCKGROUP (GKSAP) · Column C = GRADEGROUP (MO) · Column D = Volume (81582.236) This data/table continues for all the data I need to analyze. Data in this formation takes much of my time to analyze it and not presentable. I have 12 Rock Groups (GKSAP; GKTR; GKFR; FWSAP; FWTR; FWFR; HWSAP; HWTR; HWFR; SOFTWAST; TRNSWAST; HARDWAST); 5 grade groups (WASTE; MO; LG; MG; HG) and 70 Levels (145.0 to 0.0) to analyze within 24hours and present. I am much familiar with VLOOKUP/HLOOKUP. I am unable or don’t know how to use these functions with such an exercise. I am getting a 0 result or #N/A. my formula is as follows: =VLOOKUP(A13;bench!$C$6:$F$1706;IF($C$1="GKSAP";2; IF($C$1="GKTR";2;IF($C$1="GKFR";2;IF($C$1="FWSAP"; 2;IF($C$1="FWTR";2;IF($C$1="FWFR";2;IF($C$1="HWSAP ";2;IF($C$1="HWTR";2;IF($C$1="HWFR";2;IF($C$1="SOF TWAST";2;IF($C$1="TRNSWAST";2;IF($C$1="HARDWAST";2 ;IF($C$2="WASTE";3;IF($C$2="mo";3;IF($C$2="mo";3;I F($C$2="lg";3;IF($C$2="mg";3;IF($C$2="hg";3;TRUE)) ))))))))))))))))) So please I need your help if there are any functions or is my formula not correct. I do arrange it in this formation (Table below) for better analysis and presentation. I want to arrange my table in this formation: · Column A = RL (Cell A3 being my RL value) · Column B = RL (Cell B1 being my ROCKGROUP; Cell B2 being my GRADEGROUP) · Column C = RL (Cell C1 being my ROCKGROUP; Cell C2 being my GRADEGROUP) · From Row 3 (B3) in reference to the RL the volumes should |
#2
|
|||
|
|||
![]() Quote:
|
#3
|
|||
|
|||
![]() Quote:
i arrange it in this format: RL GKSAP GKSAP GKSAP GKSAP GKTR GKTR GKTR GKTR GKTR GKFR WASTE LG MG HG WASTE MO LG MG HG WASTE 145.00 - - - - - - - - - - 142.50 - - - - - - - - - - 140.00 - - - - - - - - - - 137.50 - - - - - - - - - - 135.00 - - - - - - - - - - 132.50 - - - - - - - - - - 130.00 - - - - - - - - - - 127.50 - - - - - - - - - - 125.00 - - - - - - - - - - 122.50 - - - - - - - - - - 120.00 - - - - - - - - - - |
#4
|
||||
|
||||
![]()
Ntema, excelledsoftware was asking whether you could attach the workbook itself, not paste in a copy of some of the text. As you can see from looking at the result yourself, what happens when you paste it like that is no help.
However, I can tell you part of what your formula is doing. For the following description let's assume that your formula is in a worksheet named Here; if so, the formula is taking the value in Here!A13 (relative) and looking it up in bench!$C$6:$F$1706. It's assuming that that lookup table is sorted in ascending order; I think if any of the values in col C are out of order, it stops looking at that point. It also stops if it finds a value that is greater than Here!A13, and returns the one just before that, even if it isn't an exact match. The column it's to pull the data from depends on the contents of row 1 and 2 in Here col C. If the value in $C$1 is one of the 12 Rock Groups, the VLOOKUP pulls the lookup value from bench col D. If what's in Here!$C$! isn't a valid Rock Group, then it checks the value in $C$2, and if it's one of the grade groups then VLOOKUP pulls the lookup value from bench col E. If what's in $C$2 isn't a grade group, either, then VLOOKUP returns the contents of bench col C, in other words the value it found to be a match. --- Since every row on Here is looking up the same values in $C$1 and $C$2—unless that's a mistake on your part, but I don't suppose it is—allow me to suggest something simpler: Calculate the correct column at the top of the worksheet, and use it for every VLOOKUP in the rest of the sheet. Something like this: In $C$3 put Code:
=IF(NOT(ISERROR(FIND($C$2,"GKSAP GKTR GKFR FWSAP FWTR FWFR HWSAP HWTR HWFR SOFTWAST TRNSWAST HARDWAST"))),2,IF(NOT(ISERROR(FIND($C$3,"WASTE MO LG MG HG"))),3,TRUE)) Code:
=IF(ISERROR(FIND($C$2,"GKSAP GKTR GKFR FWSAP FWTR FWFR HWSAP HWTR HWFR SOFTWAST TRNSWAST HARDWAST")),IF(ISERROR(FIND($C$3,"WASTE MO LG MG HG")),TRUE,3),2) Code:
=VLOOKUP(A13;bench!$C$6:$F$1706;$C$3) |
#5
|
|||
|
|||
![]()
hi,
I have managed with PivotTable. It is not a mistake it is how I arrange my tables. See attached file. GK_QTR4_BENCH_BY_BENCH test, PV I have worked out another VLookup. On my truck factor material where material is "Fresh" I get a #N/A. When i change the material type to either "Soft or Transitional" the result is the correct result...see file October 2013 |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
bobbyarnold | Excel | 22 | 01-14-2013 08:44 AM |
![]() |
SBMC | Excel | 1 | 11-07-2012 10:24 AM |
HLOOKUP with VLOOKUP into different Doc | freeman | Excel | 0 | 09-18-2012 02:04 PM |
Vlookup | ibrahimaa | Excel | 8 | 01-03-2012 09:32 PM |
Vlookup | Karen615 | Excel | 4 | 09-12-2011 02:30 PM |