Formula Help - Please

snoozee

New Member
Joined
Apr 19, 2007
Messages
37
Hi

Can someone please help me with a formula that I can use to achieve the following result.

A value of 1-5 in cell ref C21

In cell ref C19 I have a value that is driven by the user e.g. 4

In cell ref T4:X4 I have the numbers 1 -5 as a heading
In cell ref T5:X5 I have the numbers 2.62, 2.94, 3.27, 3.60 & 3.92

What I need to happen is that the value of C19 is compared against cell ref T5:X5 and depending on the value it will then return a value of 1-5 (cell ref T4:X4 ), so in the example above the value of C21 would be 5 as C19 (4) is greater than "X5" (3.92).

If C19 was 3 then C21 would be 2 or another example if C19 was 1 then C21 would be 1.

if you haven't already guessed it's for target tracking :)

Hopefully the above makes sense as I'd really appreciate some help.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Try:
Remove the space after "< "

Code:
=IF(C19< T5,T4,LOOKUP(C19,$T$5:$X$5,$T$4:$X$4))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,650
Messages
6,126,021
Members
449,281
Latest member
redwine77

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