Excel if function

linnzayar

New Member
Joined
Jul 4, 2012
Messages
6
Dear all, I wold like to ask some question that make me difficult to use excel " IF" I would like to write "IF" function in my Excel data. The following is that I would like to write. If A1 is less than 1351 A2=1000, If it is greater than 1351 and Less than 2000, A2 =2000, If it is greater than 2000 and Less than 5000 A2 = 3000. If it is greater than 5000, A2 = 4000 this is what i would like to write with "if fucntion) thank a lot
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Welcome to the board. The below formula should be what you're after:
=LOOKUP(A1,{0,1351,2000,5000},{1000,2000,3000,4000})
 
Upvote 0
Welcome to the board. The below formula should be what you're after:
=LOOKUP(A1,{0,1351,2000,5000},{1000,2000,3000,4000})

Thank very a lot for your reply

but I really understand it as i am the basic user of excel

Please reply with full function.

I would like to write it

If A1 is less than 1351, A2 is A3*0.5*0.83333
if A1 is greater than 1351 and Less than 2001, A2 is A3*0.8*0.83333
if A1 is greater than 2001 and less than 5000, A2 is A3*0.83333
if A1 is greater than 5000, A2 is A3*1.2*0.83333

thank again

I am waiting your kind reply
 
Upvote 0
Thank very a lot for your reply

but I really understand it as i am the basic user of excel

Please reply with full function.

I would like to write it

If A1 is less than 1351, A2 is A3*0.5*0.83333
if A1 is greater than 1351 and Less than 2001, A2 is A3*0.8*0.83333
if A1 is greater than 2001 and less than 5000, A2 is A3*0.83333
if A1 is greater than 5000, A2 is A3*1.2*0.83333

thank again

I am waiting your kind reply

That seems a really inefficient method, but here you go...

=A3/1.2*LOOKUP(A1,{0,1351,2000,5000},{0.5,0.8,1,1.2})
 
Upvote 0

Forum statistics

Threads
1,215,882
Messages
6,127,532
Members
449,385
Latest member
KMGLarson

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