monsierexcel
New Member
- Joined
- Nov 19, 2018
- Messages
- 29
Hello all, i cant find why this doesnt work
=IF(VLOOKUP(C2,'cost prices'!$B:$J,9,0),VLOOKUP(C2,'cost prices'!$B:$J,9,0),IF(VLOOKUP(C2,'cost prices'!$B:$I,8,0),VLOOKUP(C2,'cost prices'!$B:$I,8,0),IF(VLOOKUP(C2,'cost prices'!$B:$H,7,0),VLOOKUP(C2,'cost prices'!$B:$H,7,0),IF(VLOOKUP(C2,'Kit Products Cost Prices'!$B:$J,9,0),VLOOKUP(C2,'Kit Products Cost Prices'!$B:$J,9,0),IF(VLOOKUP(C2,'Kit Products Cost Prices'!$B:$I,8,0),VLOOKUP(C2,'Kit Products Cost Prices'!$B:$I,8,0),IF(VLOOKUP(C2,'Kit Products Cost Prices'!$B:$H,7,0),VLOOKUP(C2,'Kit Products Cost Prices'!$B:$H,7,0),VLOOKUP(C2,'Kit Pricing not in AP'!$A:$B,2,0)))))))
when i look at function arguments for the line:
IF(VLOOKUP(C2,'Kit Products Cost Prices'!$B:$H,7,0),VLOOKUP(C2,'Kit Products Cost Prices'!$B:$H,7,0),VLOOKUP(C2,'Kit Pricing not in AP'!$A:$B,2,0)
which shows its finding the correct value yet it still showing an NA error on return i cant figure this when the condition is showing the right value at 154.08!
I know you can have upto 7 nested IF statements but i only have 6 here.
thank you,
=IF(VLOOKUP(C2,'cost prices'!$B:$J,9,0),VLOOKUP(C2,'cost prices'!$B:$J,9,0),IF(VLOOKUP(C2,'cost prices'!$B:$I,8,0),VLOOKUP(C2,'cost prices'!$B:$I,8,0),IF(VLOOKUP(C2,'cost prices'!$B:$H,7,0),VLOOKUP(C2,'cost prices'!$B:$H,7,0),IF(VLOOKUP(C2,'Kit Products Cost Prices'!$B:$J,9,0),VLOOKUP(C2,'Kit Products Cost Prices'!$B:$J,9,0),IF(VLOOKUP(C2,'Kit Products Cost Prices'!$B:$I,8,0),VLOOKUP(C2,'Kit Products Cost Prices'!$B:$I,8,0),IF(VLOOKUP(C2,'Kit Products Cost Prices'!$B:$H,7,0),VLOOKUP(C2,'Kit Products Cost Prices'!$B:$H,7,0),VLOOKUP(C2,'Kit Pricing not in AP'!$A:$B,2,0)))))))
when i look at function arguments for the line:
IF(VLOOKUP(C2,'Kit Products Cost Prices'!$B:$H,7,0),VLOOKUP(C2,'Kit Products Cost Prices'!$B:$H,7,0),VLOOKUP(C2,'Kit Pricing not in AP'!$A:$B,2,0)
which shows its finding the correct value yet it still showing an NA error on return i cant figure this when the condition is showing the right value at 154.08!
I know you can have upto 7 nested IF statements but i only have 6 here.
thank you,