Nested If Statements

pamhurst

New Member
Joined
Nov 14, 2003
Messages
5
I have 4 worksheets in 1 workbook and I'm trying to do a comparison. I'm providing information to a buyer on items they need to take action on. My first statement goes something like this:

=IF('EFA WK1'!H5 <> 'EFA WK2'!G5, "CHECK!", 0) which works fine.

Now I want to add another statement that basically states If 'Comparison'!H2 is less than or greater than 25% put the CHECK. So far I haven't been able to get it to work.

Any help would be great!!!! :oops:
 

Some videos you may like

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Zack Barresse

MrExcel MVP
Joined
Dec 9, 2003
Messages
10,881
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
  2. Mobile
  3. Web
without any other specifics...

=IF(or('EFA WK1'!H5,'Comparison'!H2) <> 'EFA WK2'!G5, "CHECK!", 0)

because you didn't specify wether it should be, check one first, then the other, both conditions be met, or just one condition be met.

if they both need met, switch 'or' for 'and'

HTH
 

pamhurst

New Member
Joined
Nov 14, 2003
Messages
5
See if this makes more sense....First I was just giving a heads up notice that there was a difference between week 1 and week 2. I even have a sheet showing the differences. Now the buyer wants a notice only when there is a difference of + or - of 25%. So I'm not even sure what is the best formula to use.

Thanks for any help.
 

Zack Barresse

MrExcel MVP
Joined
Dec 9, 2003
Messages
10,881
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
  2. Mobile
  3. Web

ADVERTISEMENT

okay, what do you have in...

EFA WK1!H5
EFA WK2!G5
Comparison!H2
??

and do you still want to know if either EFA WK1!H5 or Comparison!H2 is +/- 25% of EFA WK2!G5?

or one or the other?
 

pamhurst

New Member
Joined
Nov 14, 2003
Messages
5
What I have in EFA WK1 H5 is a number same for EFA WK2 G5. Comparison H2 is the difference between EFA WK1 H5 and EFA WK2. So I would like to give a heads up notice when the difference is + or - 25%.

Thanks,

Pamala
 

Zack Barresse

MrExcel MVP
Joined
Dec 9, 2003
Messages
10,881
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
  2. Mobile
  3. Web

ADVERTISEMENT

well if you only want to look at the Comparison!H2, either conditionally format it for same cell options

or

in another cell type something like this...

=if(or(Comparison!H2>.25,Comparison!h2<-.25,"Heads up!","")
 

Brian from Maui

MrExcel MVP
Joined
Feb 16, 2002
Messages
8,458
pamhurst said:
What I have in EFA WK1 H5 is a number same for EFA WK2 G5. Comparison H2 is the difference between EFA WK1 H5 and EFA WK2. So I would like to give a heads up notice when the difference is + or - 25%.

Thanks,

Pamala

In Comparison H2 why not use Conditional Formatting if the number exceeds your criteria
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,201
pamhurst said:
What I have in EFA WK1 H5 is a number same for EFA WK2 G5. Comparison H2 is the difference between EFA WK1 H5 and EFA WK2. So I would like to give a heads up notice when the difference is + or - 25%.

Thanks,

Pamala

Are you saying that H2 on sheet Comparison houses 25%?
 

Watch MrExcel Video

Forum statistics

Threads
1,122,521
Messages
5,596,653
Members
414,083
Latest member
Mrsash

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
Top