Combining two IF functions

cacahuatita

New Member
Joined
Dec 30, 2010
Messages
6
Ok, what i need it this

The overall condition to be checked is K15270=H15270
If M15270="only #", then write "same #"
BUT
IF M15270="Text", then write "same original"
if K15270 is not equal to H15270, then write "-"

My attempt:

=IF(K15270=H15270,IF(M15270="only #","same #",IF(M15270="Text","same original")),"-")

In the "text" cells it gives me "false" instead of "-"
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
You were just missing the "False" section on your third if statement... I've added it here...

Code:
=IF(K15270=H15270,IF(M15270="only #","same #",IF(M15270="Text","same original","-")),"-")

Joshua Smith
dynamicvba.com
 
Upvote 0
This what you need?

=IF(K15270=H15270,IF(M15270="only #","same #",IF(M15270="Text","same original","-"),"-"),"-")
 
Upvote 0
Ok, here's what i want the formula to do:

If the info in K and H is the same and M says "only #", then write "same #", but if M says "text", then write "same original", if K and H are not the same, then write "false"

I guess the first step is K=H
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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