Hello
What should be ideal formula to get desired answer ?
Cell B9 = 510 ie Total Units Consumed
Cell F9 contains following Formula . =(VLOOKUP(B9,$D$3:$F$6,3)+(B9)-(LOOKUP(B9,$D$3:$F$6)))*VLOOKUP(B9,D$3:F$6,2)
Which gave answer as 4258.50
instead of 2618.50
basically it goes if units Consumed
Less than 500 then 100 X 1.65 = 165.00
200 X 4.20 = 840.00
200 X 7.65 = 1530.00
10 X 8.35 = 83.50 I dont know what condition is required here Tried many things and it got messed up and i am confused
TOTAL 2618.50
I tried putting the Following formula too
=IF(ISNA(VLOOKUP(B9,$D$3:$F$6,3,FALSE))=TRUE,F3,VLOOKUP(B9,$D$3:$F$6,3,FALSE))+IF(ISNA(VLOOKUP(B9,$D$3:$F$6,3,FALSE))=TRUE,F4,VLOOKUP(B9,$D$3:$F$6,3,FALSE))+IF(ISNA(VLOOKUP(B9,$D$3:$F$6,3,FALSE))=TRUE,F5,VLOOKUP(B9,$D$3:$F$6,3,FALSE))+IF(ISNA(VLOOKUP(B9,$D$3:$F$6,3,FALSE))=TRUE,F6,VLOOKUP(B9,$D$3:$F$6,FALSE))
The answer came up was as 6360
Require your help to correct it
Thanks in advance
RapchikM
What should be ideal formula to get desired answer ?
Range of Units | Units Consumed | Rate | Amt | ||||
---|---|---|---|---|---|---|---|
Col C | Col D | Col E | Col F | ||||
000-100 Units | 100 | 1.65 | 165 | ||||
000-100 Units | 200 | 4.20 | 840 | ||||
| 200 | 7.65 | 1530 | ||||
| 500 | 8.35 | 3825 |
Cell B9 = 510 ie Total Units Consumed
Cell F9 contains following Formula . =(VLOOKUP(B9,$D$3:$F$6,3)+(B9)-(LOOKUP(B9,$D$3:$F$6)))*VLOOKUP(B9,D$3:F$6,2)
Which gave answer as 4258.50
instead of 2618.50
basically it goes if units Consumed
Less than 500 then 100 X 1.65 = 165.00
200 X 4.20 = 840.00
200 X 7.65 = 1530.00
10 X 8.35 = 83.50 I dont know what condition is required here Tried many things and it got messed up and i am confused
TOTAL 2618.50
I tried putting the Following formula too
=IF(ISNA(VLOOKUP(B9,$D$3:$F$6,3,FALSE))=TRUE,F3,VLOOKUP(B9,$D$3:$F$6,3,FALSE))+IF(ISNA(VLOOKUP(B9,$D$3:$F$6,3,FALSE))=TRUE,F4,VLOOKUP(B9,$D$3:$F$6,3,FALSE))+IF(ISNA(VLOOKUP(B9,$D$3:$F$6,3,FALSE))=TRUE,F5,VLOOKUP(B9,$D$3:$F$6,3,FALSE))+IF(ISNA(VLOOKUP(B9,$D$3:$F$6,3,FALSE))=TRUE,F6,VLOOKUP(B9,$D$3:$F$6,FALSE))
The answer came up was as 6360
Require your help to correct it
Thanks in advance
RapchikM
Last edited: