#1   Report Post  
anat
 
Posts: n/a
Default If Statements

I have 2 cells with asterics in them, D11 and I11. I am trying to write a
forumla using if statement
=IF(D11="*",1,"")
How could I combine both cells to add them if they both have *?

Thanks
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

one way:

=COUNTIF(D11,"~*")+COUNTIF(I11,"~*")

In article ,
"anat" wrote:

I have 2 cells with asterics in them, D11 and I11. I am trying to write a
forumla using if statement
=IF(D11="*",1,"")
How could I combine both cells to add them if they both have *?

Thanks

  #3   Report Post  
anat
 
Posts: n/a
Default

Sorry I should have been more clear:

Col X should look at D and I and total the number of astericks. Col Y
should total the cells without astericks.

Thanks

"JE McGimpsey" wrote:

one way:

=COUNTIF(D11,"~*")+COUNTIF(I11,"~*")

In article ,
"anat" wrote:

I have 2 cells with asterics in them, D11 and I11. I am trying to write a
forumla using if statement
=IF(D11="*",1,"")
How could I combine both cells to add them if they both have *?

Thanks


  #4   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Perhaps I'm dense, but I'm not understanding here...

Do you want to count asterisks in each row, columns D & I, putting the
result in column X of that row?

Or do you want to count all the asterisks in columns D & I and put that
in some cell in column X? If so, how many rows should be looked at for
the value that goes into the cell in column Y (i.e., cells without
asterisks)?



In article ,
"anat" wrote:

Sorry I should have been more clear:

Col X should look at D and I and total the number of astericks. Col Y
should total the cells without astericks.

  #5   Report Post  
anat
 
Posts: n/a
Default

Yes, I want to count the number of asterisks in each row (of columns D & I)
and put the result in column X of that row. And if it has no asterisks count
the blanks and put the results in Col Y since the asterisks represents a type
of an employee.

Thanks



"JE McGimpsey" wrote:

Perhaps I'm dense, but I'm not understanding here...

Do you want to count asterisks in each row, columns D & I, putting the
result in column X of that row?

Or do you want to count all the asterisks in columns D & I and put that
in some cell in column X? If so, how many rows should be looked at for
the value that goes into the cell in column Y (i.e., cells without
asterisks)?



In article ,
"anat" wrote:

Sorry I should have been more clear:

Col X should look at D and I and total the number of astericks. Col Y
should total the cells without astericks.




  #6   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

X1: =(D1="*")+(I1="*")
Y1: =2-X1

Select X1 and Y1 and copy down as far as necessary.

In article ,
"anat" wrote:

Yes, I want to count the number of asterisks in each row (of columns D & I)
and put the result in column X of that row. And if it has no asterisks count
the blanks and put the results in Col Y since the asterisks represents a type
of an employee.

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
2 If Statements between 2 values Q John Excel Worksheet Functions 4 December 13th 04 03:37 PM
4 different if statements, not working Brian Excel Worksheet Functions 5 December 12th 04 08:17 PM
Macro to find and delete all FALSE statements Woody13 Excel Discussion (Misc queries) 3 December 8th 04 11:16 PM
Unresolved Errors in IF Statements - Errors do not show in results Markthepain Excel Worksheet Functions 2 December 3rd 04 08:49 AM
If statements Mark Excel Worksheet Functions 3 November 2nd 04 08:39 PM


All times are GMT +1. The time now is 05:31 PM.

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

About Us

"It's about Microsoft Excel"