FanofExcel18

Board Regular
Joined
Jun 7, 2018
Messages
65
Need Help

I'm weighting hours.

Example: Work hours for the month is 150

1 = 120<
2 = 121-135
3 = 135-150
4 = 150>
 
I still don't understand, both formulae supplied give the answers you have shown.
There was no mention in your OP of a "base number" & you have not shown how that fits in.
 
Upvote 0

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
TimeAmountHoursWeightingAmount
1231142 125 or Less1
1272 126 to 1352
1624 136 to 1423
1363 142 or greater4

<colgroup><col><col><col span="2"><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Ok, I understand where the "base number" fits it (ie the max weighting), but the other other weightings have no changed. Are they also dependant on the base number?
 
Upvote 0
Ok, I understand where the "base number" fits it (ie the max weighting), but the other other weightings have no changed. Are they also dependant on the base number?

The Base will be whatever that month hours are. Each of the weightings will change in range depending on the month. Those I can physically change. I don't know how to get the IF statement (if that is what should be used) to push the result correctly. I hope that answers your question.
 
Upvote 0
How about


Excel 2013/2016
ABCDEF
7123114299994
812721423
916241352
1013631251
Sheet2
Cell Formulas
RangeFormula
B7=INDEX(E$7:F$10,MATCH(A7,E$7:E$10,-1),2)


where E7:F10 are a lookup table somewhere in the workbook
 
Upvote 0
How about

Excel 2013/2016
ABCDEF
7123114299994
812721423
916241352
1013631251

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet2

Worksheet Formulas
CellFormula
B7=INDEX(E$7:F$10,MATCH(A7,E$7:E$10,-1),2)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>



where E7:F10 are a lookup table somewhere in the workbook

So I think this will work. Here is my problem now, I'm getting #N/A.

I think it has something to do with the 2 at the end for the column. I'm not as familiar with INDEX MATCH.

My first lookup cell is I6, my table is located AA5 to AB8
 
Upvote 0
Assuming the table is on the same sheet & it's sorted descending, try
=INDEX(AA$5:AB$8,MATCH(I6,AA$5:AB$8,-1),2)
 
Upvote 0
The location of the formula is irrelevant.
Is all the data on the same sheet?
Also is you lookup table sorted descending?
 
Upvote 0
The location of the formula is irrelevant.
Is all the data on the same sheet?
Also is you lookup table sorted descending?

I figured it out!!! And it was my error totally. I duplicated the row/column formula: =INDEX(AA$5:AB$8,MATCH(I6,AA$5:AB$8,-1),2)
When it should have been: =INDEX(AA$5:AB$8,MATCH(I6,AA$5:AA$8,-1),2)

It works, thank you for your help and patience!
 
Upvote 0

Forum statistics

Threads
1,215,521
Messages
6,125,303
Members
449,218
Latest member
Excel Master

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