Cell Text display for different criterias - help!

spike87

New Member
Joined
Jun 23, 2012
Messages
1
Hello

I have a spreadsheet where I have a value in one cell and a range of 'outcomes' in a small table.

The idea of the spreadsheet is that if a value is in one cell (called Hours), the cell next to it needs to display a relevant 'level' if it fits in between the range.

For example; Here is the range of 'Levels' and hours

Column HColumn I
Row
20
LevelHours up to:
Row 2100.5
Row 2213.5
Row 23210.5
Row 24315
Row 25421
Row 26531

<tbody>
</tbody>


For example; In cell D3, i have a figure (say '12.0') - I need to have a forumla so that the cell next to it (cell E3) will show the correct level from the table above (so for the example of 12.0, it will show the words 'Level 3' as it's greater than 10.5 [Level 2] but less than 15.0 [Level 3] so fits into the Level 3 criteria).

I need this to be a forumla so that if the hours in D3 were to change, then the level can change if it moves to between a different critera

Can anyone help?
 
Last edited:

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Change your columns around... Then in e3

="Level "&vlookup(d3,h21:i26,2,TRUE)

This will lookup the hours and find the first level that is too big and drop back to the next one as its an approx match not exact
 
Upvote 0
Hi

Here are two ways.
DEFGHI
2Hours up toLevelLevel
31233
4
19
20 LevelHours up to
21 00,5
22 13,5
23 210,5
24 315
25 421
26 531

<colgroup><col style="width: 28ptpx"><col width="60pt"><col width="60pt"><col width="60pt"><col width="60pt"><col width="60pt"><col width="60pt"></colgroup><tbody>
</tbody>

ZelleFormel
E3=INDEX(H21:H26,COUNT(I21:I26)-COUNTIF(I21:I26,">="&D3)+1)
F3=LARGE(H21:H26,COUNTIF(I21:I26,">="&D3))

<colgroup><col style="width: 40ptpx"><col></colgroup><tbody>
</tbody>
Diese Tabelle wurde mit Tab2Html (v2.4.1) erstellt. ©Gerd alias Bamberg

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,212,096
Messages
6,105,944
Members
447,986
Latest member
dicklim39

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