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

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
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,731
Messages
6,126,537
Members
449,316
Latest member
sravya

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