Need help in use of IF function

Santosh080

Board Regular
Joined
Jul 15, 2016
Messages
73
Office Version
  1. 2021
Platform
  1. Windows
Hello Friends

Today my Boss give me some work in excel but i face some problem in it. So i need your help.

I have one excel file like below,


Amt% of Cash
4800055
5500065
3200032
5600080
11000078
13000090
25000066
26000074

<tbody>
</tbody>
















I have given these conditions to apply on the above table.

Two Conditions
Outcome after apply of condition
if Amt is upto 5000055% or aboveBR
if Amt is upto 50001 to 10000065 % or aboveBR
if Amt is upto100001 to 20000075% or aboveBR
if Amt is upto 200001 to 50000060% or aboveRO

<tbody>
</tbody>


I can not figure out how to use the IF function or any other function in this situation. I want to apply the TWO conditions so that i get the out come either BR or RO in the adjacent column in the first table.
 
Last edited:

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Do both conditions on each row need to be true? For example does the Amt need to be <= 500 AND the percentage needs to be 55%+ in order to produce an outcome?
 
Upvote 0
Yes both conditions need to be true. i want all conditions in one formula. Can it possible?
 
Upvote 0
Create the following table in a blank sheet, let's call it Sheet 2 starting at A1

Code:
0	0	
50000	55%	BR
100000	65%	BR
200000	75%	BR
500000	60%	RO

With your data in Sheet 1 starting at A2

in C2
=INDEX(Sheet2!C$2:C$6,MATCH(A2,IF(B2>Sheet2!B$2:B$6,Sheet2!A$2:A$6),1))

Array formula, use Ctrl-Shift-Enter
 
Upvote 0
Create the following table in a blank sheet, let's call it Sheet 2 starting at A1

Code:
0    0    
50000    55%    BR
100000    65%    BR
200000    75%    BR
500000    60%    RO

With your data in Sheet 1 starting at A2

in C2
=INDEX(Sheet2!C$2:C$6,MATCH(A2,IF(B2>Sheet2!B$2:B$6,Sheet2!A$2:A$6),1))

Array formula, use Ctrl-Shift-Enter



Thank you very much.

In second condition i.e (%) i want this condition 55% and above for all. can it possible. One more thing if the result is #N/A i want to set the result as "HO". Can i do it?
 
Upvote 0
Yes, you can get that easily.... try using IFERROR() function or ISNA() function.

=iferror(INDEX(Sheet2!C$2:C$6,MATCH(A2,IF(B2>Sheet2!B$2:B$6,Sheet2!A$2:A$6),1)),"HO")

=if(isna(INDEX(Sheet2!C$2:C$6,MATCH(A2,IF(B2>Sheet2!B$2:B$6,Sheet2!A$2:A$6),1))),"HO")
 
Upvote 0
Create the following table in a blank sheet, let's call it Sheet 2 starting at A1

Code:
0    0    
50000    55%    BR
100000    65%    BR
200000    75%    BR
500000    60%    RO

With your data in Sheet 1 starting at A2

in C2
=INDEX(Sheet2!C$2:C$6,MATCH(A2,IF(B2>Sheet2!B$2:B$6,Sheet2!A$2:A$6),1))

Array formula, use Ctrl-Shift-Enter


i don't want to use sheet2 in formula. Can it possible without using sheet 2?
 
Upvote 0
Well youve gotta put the table somewhere...
Decide where you wanna put it and change the formula accordingly.

UPDATE: I'm not sure my formula will work with values "and above", test thoroughly.

By the way if you use 55 instead of 55% then the table should be thie

Code:
0	0	
50000	55	BR
100000	65	BR
200000	75	BR
500000	60	RO

UPDATE: I'm not sure my formula will work with values "and above", test thoroughly.
 
Last edited:
Upvote 0
My formula doesnt work on this selection

32000 32%

What are you expecting the answer to be here?
Its up to 50000 but the percentage is not high enough to produce BR so what are you epexcting the result of this to be as you havent said.
 
Last edited:
Upvote 0
Two Conditions
Outcome after apply of condition
if Amt is upto 5000055% or aboveBR
if Amt is upto 50001 to 10000065 % or aboveBR


if Amt is upto100001 to 20000075% or aboveBR
if Amt is upto 200001 to 50000060% or aboveRO

<tbody>
</tbody>


you can see in formula i need range in amt like
i] 1 to 50000
ii] 500001 to 100000
iii] 100001 to 200000

And in % column i need
i] 55% and above
ii] 65% and above
ii] 75 %and above

all in one formula. is it possible?
 
Upvote 0

Forum statistics

Threads
1,214,542
Messages
6,120,116
Members
448,945
Latest member
Vmanchoppy

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