V look up formula or if statement

umarraza

New Member
Joined
Jul 7, 2015
Messages
16
Hi,

I am trying to solve a scenario on excel but not sure what formula to use.

What I am trying to achieve is if a work item is completed within 7 days they receive 5 points, if within 14 days then 3 points and if more than 14+ days than 1 point.

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Work Item
[/TD]
[TD]Number of Days to Complete
[/TD]
[TD]Points
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]XYZ
[/TD]
[TD]21
[/TD]
[TD]?
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]ABC
[/TD]
[TD]3
[/TD]
[TD]?
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

What formula would I use in cell C2 and C3.

Thank you in advance.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Here you go:


Excel 2010
ABC
1Work ItemNumber of Days to CompletePoints
2XYZ211
3ABC35
4DEF75
5GHI83
6AAA143
7BBB151
Sheet1
Cell Formulas
RangeFormula
C2=INDEX({5,3,1},MATCH(1,FREQUENCY(B2,{7,14}),0))
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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