#1   Report Post  
joe
 
Posts: n/a
Default Nested IF question

I need to create a formula which states like this

IF ( A1 ' ' AND B1 ' ' AND C1 ' ' Then 'hai', IF D1 ' ' AND E1 ' ' Then
'Hello')

Can you guys help
  #2   Report Post  
Gary''s Student
 
Posts: n/a
Default


--
Gary''s Student
What if none of the cells are blank?

"joe" wrote:

I need to create a formula which states like this

IF ( A1 ' ' AND B1 ' ' AND C1 ' ' Then 'hai', IF D1 ' ' AND E1 ' ' Then
'Hello')

Can you guys help

  #3   Report Post  
joe
 
Posts: n/a
Default

I just gave an example, I will have values or Blanks

"Gary''s Student" wrote:


--
Gary''s Student
What if none of the cells are blank?

"joe" wrote:

I need to create a formula which states like this

IF ( A1 ' ' AND B1 ' ' AND C1 ' ' Then 'hai', IF D1 ' ' AND E1 ' ' Then
'Hello')

Can you guys help

  #4   Report Post  
Gary''s Student
 
Posts: n/a
Default

O.K. then...

This formula will work:

=IF(AND(A1=" ",B1=" ",C1=" "),"hai",IF(AND(D1=" ",E1=" "),"Hello"," "))
--
Gary''s Student


"joe" wrote:

I just gave an example, I will have values or Blanks

"Gary''s Student" wrote:


--
Gary''s Student
What if none of the cells are blank?

"joe" wrote:

I need to create a formula which states like this

IF ( A1 ' ' AND B1 ' ' AND C1 ' ' Then 'hai', IF D1 ' ' AND E1 ' ' Then
'Hello')

Can you guys help

  #5   Report Post  
Dave Peterson
 
Posts: n/a
Default

=if(and(a1="",b1="",c1=""),"hai",if(and(d1="",e1=" "),"hello","what goes here?"))

joe wrote:

I need to create a formula which states like this

IF ( A1 ' ' AND B1 ' ' AND C1 ' ' Then 'hai', IF D1 ' ' AND E1 ' ' Then
'Hello')

Can you guys help


--

Dave Peterson


  #6   Report Post  
Marie D
 
Posts: n/a
Default

=IF(AND(ISBLANK(A3), ISBLANK(B3), ISBLANK(C3)),"hai", IF(AND(ISBLANK(D3),
ISBLANK(E3)), "Hello","false"))

"joe" wrote:

I need to create a formula which states like this

IF ( A1 ' ' AND B1 ' ' AND C1 ' ' Then 'hai', IF D1 ' ' AND E1 ' ' Then
'Hello')

Can you guys help

  #7   Report Post  
Marie D
 
Posts: n/a
Default

I just posted a nested if statement, but started thinking and thought this
would work better for you.

=IF(AND(ISBLANK(A1), ISBLANK(B1), ISBLANK(C1), D1<"", E1),"hai",
IF(AND(ISBLANK(A1), ISBLANK(B1), ISBLANK(C1),ISBLANK(D1), ISBLANK(E1)),
"Hello","?"))

"Marie D" wrote:

=IF(AND(ISBLANK(A3), ISBLANK(B3), ISBLANK(C3)),"hai", IF(AND(ISBLANK(D3),
ISBLANK(E3)), "Hello","false"))

"joe" wrote:

I need to create a formula which states like this

IF ( A1 ' ' AND B1 ' ' AND C1 ' ' Then 'hai', IF D1 ' ' AND E1 ' ' Then
'Hello')

Can you guys help

  #8   Report Post  
joe
 
Posts: n/a
Default

Thanks guys

"Dave Peterson" wrote:

=if(and(a1="",b1="",c1=""),"hai",if(and(d1="",e1=" "),"hello","what goes here?"))

joe wrote:

I need to create a formula which states like this

IF ( A1 ' ' AND B1 ' ' AND C1 ' ' Then 'hai', IF D1 ' ' AND E1 ' ' Then
'Hello')

Can you guys help


--

Dave Peterson

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
Nested if question dakotasteve Excel Discussion (Misc queries) 3 September 15th 05 09:47 PM
How do I find and replace a question mark in Excel? Ranpalandil Excel Discussion (Misc queries) 1 September 7th 05 10:20 PM
Why are my nested sub-totals are displaying incorrectly? chiefdean13 Excel Discussion (Misc queries) 1 July 20th 05 05:45 AM
IF NESTED Question Heather Excel Worksheet Functions 4 April 27th 05 12:08 PM
An easy macro question and one I believe to be a little more diffi TroutKing Excel Worksheet Functions 3 January 18th 05 09:17 PM


All times are GMT +1. The time now is 08:59 PM.

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"