DKRbella0814
Board Regular
- Joined
- Aug 10, 2008
- Messages
- 155
Can someone help me edit the formula so that it works properly? I'm sure it's a matter of me having parenthesis where they don't need to be or not having them where they are needed.
I basically want the formula to do a series of lookups on a spreadsheet to see if a calculation exists for job#6 (last entered job), if it is "", then lookup the data for the same date in job #5 (2nd last entered job) and return the value unless it is "", then look up the data for the same date for job #4 (3rd last entered job) and return the value unless it is "",...all the way until job #1 (which is the farthest left value on the spreadsheet)
The reason for going from right to left is due to the fact that the farthest right calculations are based on the previously entered data for the jobs before it...and there will not always be 6 jobs entered each day.
Thanks in advance for the help!
=if(vlookup(I6,Calculations2!$A2:$CP2,91,false)<>"",vlookup(I6,Calculations2!$A2:$CP2,91,false),(if(vlookup(i6,Calculations2!$A2:$CP2,76,false)<>"",vlookup(i6,Calculations2!$A2:$CP2,76,false),(if(vlookup(i6,Calculations2!$A2:$CP2,61,false)<>"",(vlookup(i6,Calculations2!$A2:$CP2,61,false),(if(vlookup(I6,Calculations2!$A2:$CP2,46,false)<>"",vlookup(I6,Calculations2!$A2:$CP2,46,false),(if(vlookup(I6,Calculations2!$A2:$CP2,31,false)<>"",vlookup(I6,Calculations2!$A2:$CP2,31,false),(if(vlookup(I6,Calculations2!$A2:$CP2,16,false)<>"",vlookup(I6,Calculations2!$A2:$CP2,16,false),""))
I basically want the formula to do a series of lookups on a spreadsheet to see if a calculation exists for job#6 (last entered job), if it is "", then lookup the data for the same date in job #5 (2nd last entered job) and return the value unless it is "", then look up the data for the same date for job #4 (3rd last entered job) and return the value unless it is "",...all the way until job #1 (which is the farthest left value on the spreadsheet)
The reason for going from right to left is due to the fact that the farthest right calculations are based on the previously entered data for the jobs before it...and there will not always be 6 jobs entered each day.
Thanks in advance for the help!
=if(vlookup(I6,Calculations2!$A2:$CP2,91,false)<>"",vlookup(I6,Calculations2!$A2:$CP2,91,false),(if(vlookup(i6,Calculations2!$A2:$CP2,76,false)<>"",vlookup(i6,Calculations2!$A2:$CP2,76,false),(if(vlookup(i6,Calculations2!$A2:$CP2,61,false)<>"",(vlookup(i6,Calculations2!$A2:$CP2,61,false),(if(vlookup(I6,Calculations2!$A2:$CP2,46,false)<>"",vlookup(I6,Calculations2!$A2:$CP2,46,false),(if(vlookup(I6,Calculations2!$A2:$CP2,31,false)<>"",vlookup(I6,Calculations2!$A2:$CP2,31,false),(if(vlookup(I6,Calculations2!$A2:$CP2,16,false)<>"",vlookup(I6,Calculations2!$A2:$CP2,16,false),""))