Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
heater
 
Posts: n/a
Default More than one IF Statement

I want to do the following: IF H8="Yes" then the sum in G8, IF H8="Yes" AND
J8="Yes" then G8 + I8. However, if J8 is blank then it only adds G8.
  #2   Report Post  
JEV
 
Posts: n/a
Default

=IF(AND(H8="YES",J8="YES"),G8+I8,G8)

I think this should work..will you have answers other than YES and blank?

"heater" wrote:

I want to do the following: IF H8="Yes" then the sum in G8, IF H8="Yes" AND
J8="Yes" then G8 + I8. However, if J8 is blank then it only adds G8.

  #3   Report Post  
Jason Morin
 
Posts: n/a
Default

One way:

=G8*(H8="yes")+I8*(J8="yes")*(H8="yes")

or a little shorter:

=(H8="yes")*(G8+I8*(J8="yes"))

HTH
Jason
Atlanta, GA

-----Original Message-----
I want to do the following: IF H8="Yes" then the sum in

G8, IF H8="Yes" AND
J8="Yes" then G8 + I8. However, if J8 is blank then it

only adds G8.
.

  #4   Report Post  
Jason Morin
 
Posts: n/a
Default

This will return the value in G8 if H8 does not
equal "yes".

HTH
Jason
Atlanta, GA

-----Original Message-----
=IF(AND(H8="YES",J8="YES"),G8+I8,G8)

I think this should work..will you have answers other

than YES and blank?

"heater" wrote:

I want to do the following: IF H8="Yes" then the sum

in G8, IF H8="Yes" AND
J8="Yes" then G8 + I8. However, if J8 is blank then

it only adds G8.
.

  #5   Report Post  
heater
 
Posts: n/a
Default

It worked! Thanks

"JEV" wrote:

=IF(AND(H8="YES",J8="YES"),G8+I8,G8)

I think this should work..will you have answers other than YES and blank?

"heater" wrote:

I want to do the following: IF H8="Yes" then the sum in G8, IF H8="Yes" AND
J8="Yes" then G8 + I8. However, if J8 is blank then it only adds G8.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
If statement and Isblank statement Rodney C. Excel Worksheet Functions 0 January 18th 05 08:39 PM
IF Statement with Average Function results in #Value! Paul Excel Discussion (Misc queries) 5 December 28th 04 08:11 AM
7+ nested if statement? Turi Excel Worksheet Functions 3 December 20th 04 07:55 PM
Statement lintan Excel Worksheet Functions 1 December 2nd 04 11:31 PM
If statement needed Patsy Excel Worksheet Functions 1 November 4th 04 03:48 PM


All times are GMT +1. The time now is 01:00 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"