lookup with Condition of Allowable=Incurred values return a zero for particular Item ref Code.

mmr1

Board Regular
Joined
Aug 25, 2020
Messages
80
Office Version
  1. 365
Platform
  1. Windows
Hi,

I required a help in formula where as a item code AI2 (Cell no 4 & 5)does not have any allowable rate , but in that item code has incurred value for Operatives and Equipment (Highlighted Cells).

In this case i required a formula for AI2 should return as a Allowable value = Incurred value, it means there is no allowable value then there is no incurred value both return as zero values.

Thanks for the help in advance,

Book2
ABCDEFGHIJKLMNO
1Allowable ValueIncurred value
2ItemMeasurementOperativeEquipmentOperativeEquipmentOperativeEquipmentAllowable Rate Per MtrOpeartive & Equipment rate per Hr
3CodeWork Done in mtrWorked HrsEstimatedConsumedItem CodeOperativeEquipmentItem CodeOperativeEquipment
4AI1102510120450300120AI11245AI11245
5AI2503050042070AI2AI21414
6AI215476000658840AI2AI21515
7AI4392611546585364154AI41415AI41415
Sheet1
Cell Formulas
RangeFormula
E4:E7E4=IFERROR(VLOOKUP($A4,$J$4:$L$9,2,FALSE),0)*B4
F4:F7F4=IFERROR(VLOOKUP($A4,$J$4:$L$9,3,FALSE),0)*B4
G4:H7G4=+IFERROR(VLOOKUP($A4,$M$4:$O$9,2,FALSE),0)*C4
 
The case is AI2 has No allowance=No Cost because of this item code values covered in another Item code for record purpose only just recorded measurements and Hours only.

The Case AI5 there is no allowance =against the incurred Cost,That is why item code AI5 Cost to be taken as it is whatever incurred.


Thanks,
 
Upvote 0

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Here the scenario is whenever AI2 code we Put in any cell header Item Code formula to be return zero whether it is Allowable Value or it its Incurred value,

like that we put AI5 Code in any cell header Item Code formula to be return zero in Allowable value but incurred Value to return as actual in cell G8 and H8.

Thanks,

Lookup condition Allowable= Incurred values.xlsx
ABCDEFGHIJKLMNO
1Allowable ValueIncurred value
2ItemMeasurementOperativeEquipmentOperativeEquipmentOperativeEquipmentAllowable Rate Per MtrOpeartive & Equipment rate per Hr
3CodeWork Done in mtrWorked HrsEstimatedConsumedItem CodeOperativeEquipmentItem CodeOperativeEquipment
4AI1102510120450300120AI11245AI11245
5AI2503050000AI2AI21414
6AI21547600000AI2AI21515
7AI4392611546585364154AI41415AI41415
8AI52211100000AI5AI52141
Sheet3
Cell Formulas
RangeFormula
E4:E8E4=IFERROR(VLOOKUP($A4,$J$4:$L$9,2,FALSE),0)*B4
F4:F8F4=IFERROR(VLOOKUP($A4,$J$4:$L$9,3,FALSE),0)*B4
G4:H8G4=IF(E4=0,0,IFERROR(VLOOKUP($A4,$M$4:$O$9,2,FALSE),0)*C4)

sorry, just can't see the difference from the data in Rows5 & 8.
i'm logging off now, hopefully tomorrow with a clear mind I can spot the difference
 
Upvote 0
great full to you for your help looking forward towards solution.

However i utilize for now your suggested formula, please let me know if get any solution,thanks again.
 
Upvote 0
sorry, just can't see the difference from the data in Rows5 & 8.
i'm logging off now, hopefully tomorrow with a clear mind I can spot the difference
unless you cad clearly explain the difference requirement between Al2 & Al5 I'm afraid not much I can do here
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top