If Statement assigning values

ddice502

New Member
Joined
Sep 4, 2013
Messages
3
Hello all,

I'm attempting to create an if statement looks at a number finds the percentage within the range and returns the value. Any help wold be great. Using Excel 2007. Windows.

Ranges
ValueHighLow
1107.1%
179.9%
284.9%80.0%
2107.0%105.6%
392.5%85.0%
3104.0%105.5%
49590.0%92.6%
4103.9%102.1%
5102.0%96.0%

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 

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
Hello, I've no training or education in Excel but this worked for me:
Number in A1, formula in A2: IF((AND(A1>C3,A1<b3)),a3,if(and(a1>C4,A1<b4),a4,"na"))<b3)),a3,if(and(a1><b4),a4,"na")) keep="" nesting="" ifs="" for="" each="" additional="" row="" of="" "value"
continue nesting ifs for each row in "Value"</b4),a4,"na"))></b4),a4,"na"))<b3)),a3,if(and(a1></b3)),a3,if(and(a1>
<b3)),a3,if(and(a1><b4),a4,"na")) keep="" nesting="" ifs="" for="" each="" additional="" row="" of="" "value"
"Value": A3:A10, or whatever your range is
High: B3:B10
Low: C3:C10
sorry it keeps dropping part of the formula, editing not help
</b4),a4,"na"))></b3)),a3,if(and(a1>'IF((AND(A1>C3,A1<b3)),a3,if(and(a1>C4,A1<b4),a4,"na"))< html=""></b4),a4,"na"))<></b3)),a3,if(and(a1><b3)),a3,if(and(a1>C4,A1<b4,a4,"na"))< html=""></b4,a4,"na"))<></b3)),a3,if(and(a1>
<B3)),A3,IF(AND(A1>C4,A1<B4),A4,"NA"))
 
Last edited:
Upvote 0
Sorry, my mind is all scrambled trying to figure this out. 93% should return a value of 4.


Also "9590.0%" should be 95.9%.

Been a long difficult day my friends.
:oops:

Suspected that much, but certainty is important if it can be obtained...

Let F2 house a percentage value like 93%.

G2, control+shift+enter, not just enter:
Rich (BB code):
=INDEX($A$2:$A$10,MIN(IF($F2>=$C$2:$C$10,IF($F2<=$B$2:$B$10,
    ROW($A$2:$A$10)-ROW($A$2)+1)))
 
Upvote 0
i must be doing something wrong trying to share the formula, its nested ifs for each row in your Values column

or what Al said :)
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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