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
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
will this work for you?

Book1.xlsx
ABCDEFGHIJKLMNO
1Allowable ValueIncurred value
2ItemMeasurementOperativeEquipmentOperativeEquipmentOperativeEquipmentAllowable Rate Per MtrOpeartive & Equipment rate per Hr
3CodeWork Done in mtrWorked HrsEstimatedConsumedItem CodeOperativeEquipmentItem CodeOperativeEquipment
4AI1102510120450300120AI11245AI11245
5AI2503054207042070AI2AI21414
6AI2154760658840658840AI2AI21515
7AI4392611546585364154AI41415AI41415
8
Sheet3
Cell Formulas
RangeFormula
E4:E7E4=IF(IFERROR(VLOOKUP($A4,$J$4:$L$9,2,FALSE),0)*$B4=0,G4,IFERROR(VLOOKUP($A4,$J$4:$L$9,2,FALSE),0)*$B4)
F4:F7F4=IF(IFERROR(VLOOKUP($A4,$J$4:$L$9,3,FALSE),0)*$B4=0,H4,IFERROR(VLOOKUP($A4,$J$4:$L$9,3,FALSE),0)*$B4)
G4:H7G4=+IFERROR(VLOOKUP($A4,$M$4:$O$9,2,FALSE),0)*C4
 
Upvote 0
Thanks Alan,

For your valuable response, actually i am look it for allowable value=Incurred value (E5:F5=G5:F5) to be zero in this case, it means whenever the item code AI2 repeated at that time allowable value and incurred value should be zero,because of there is no allowable value against the item code.or else included in other item code the against incurred cost also included as it is.



Thanks,
 
Upvote 0
i'm a bit lost, do you mean this?

Book1.xlsx
ABCDEFGHIJKLMNO
1Allowable ValueIncurred value
2ItemMeasurementOperativeEquipmentOperativeEquipmentOperativeEquipmentAllowable Rate Per MtrOpeartive & Equipment rate per Hr
3CodeWork Done in mtrWorked HrsEstimatedConsumedItem CodeOperativeEquipmentItem CodeOperativeEquipment
4AI1102510120450300120AI11245AI11245
5AI2503050000AI2AI21414
6AI21547600000AI2AI21515
7AI4392611546585364154AI41415AI41415
8
Sheet5
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=IF(E4=0,0,IFERROR(VLOOKUP($A4,$M$4:$O$9,2,FALSE),0)*C4)
 
Upvote 0
Thanks for the response,

at present scenario suggested formula working perfectly, but i have a some codes which are does not have allowable values but incurred values to be reflected as it is.

for example in that condition E5:F5 =Did not return any values, G5:H5=Return the values whatever cost incurred.


Thanks,
 
Upvote 0
Thanks for the response,

at present scenario suggested formula working perfectly, but i have a some codes which are does not have allowable values but incurred values to be reflected as it is.

for example in that condition E5:F5 =Did not return any values, G5:H5=Return the values whatever cost incurred.


Thanks,

it would be helpful if you could post a sample data with all the scenario and desired results
 
Upvote 0
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)
 
Upvote 0
ok, based on post #7 above, what do you expected to see in E8:H8, and E5:H5 just to help to understand the requirement
 
Upvote 0
1) E5:H5 return as Zero,

2)E8:F8 return as Zero,

3)G8:H8 return a value as (11*21=231 in Cell G8) & (10*41=410 in Cell H8) showed values to be come dragging the same formula.
 
Upvote 0
i'm confused.

Why there is difference between G5:H5 (Al2, =0) and G8:H8 (Al5, 231 and 410)?
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,175
Members
452,615
Latest member
bogeys2birdies

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