If then statement - help needed

melmartin

New Member
Joined
Jun 30, 2015
Messages
5
Hi there! I am wondering if anyone can help me figure out an if then statement I am working on.

I am trying to direct Excel as follows: if k2 contains the number 65, then multiply T2 by.65 (or) if k2 contains the number 70, then multiply T2 by .50, otherwise (if k2 doesn't = 65 or 70) return the value in T2

This is what I have, but I am apparently I am missing something or have something out of order.

=IF(K2=Sheet2!$A$1,(T2*0.65),"t2" or IF(K2=Sheet2!$A$2,(T2*.50),”t2”

Thanks so much for your help!
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Welcome to the board. Try:
Code:
=T2*IF(K2=65,0.65,IF(K2=70,0.50,1)
 
Upvote 0
Well. There was one thing I didn't think of and now need to adjust the formula =T2*IF(K2=65,0.65,IF(K2=70,0.50,1) that JackDanIce gave me (it worked great, by the way - thanks).

If the number in K2= 65, 66, 67, 68 or 69, I need it to multiply T2 by .65. If it is >=70, then I need it to multiply T2 by .50. Anyone know how to adjust it?

Thanks in advance!
 
Upvote 0

Forum statistics

Threads
1,216,587
Messages
6,131,586
Members
449,657
Latest member
Timber5

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