Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default S & M equal to 1

I need
S = 1
M= 1

Ex:
S meaning sick
M meaning missing

but excell still multiply a certain nummer with 1, when i write S or M

All the best
Grenaa Music school
--
Grenaa Music School
Denmark
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default S & M equal to 1

=SUM(COUNTIF(A:A,{"S","M"}))

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Grenaa Music school" wrote in
message ...
I need
S = 1
M= 1

Ex:
S meaning sick
M meaning missing

but excell still multiply a certain nummer with 1, when i write S or M

All the best
Grenaa Music school
--
Grenaa Music School
Denmark



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 168
Default S & M equal to 1

Sounds like this may be a formula question. Not sure.

If "S" and "M" entries are in column B and you're trying to get a total
number of "S" and "M", try these formulas.

In C1 or other Cell:
=COUNTIF(B:B,"M")

In another cell:
=COUNTIF(B:B,"S")

If this is not what you're looking for, please repost.
HTH,
Paul

"Grenaa Music school" wrote in
message ...
I need
S = 1
M= 1

Ex:
S meaning sick
M meaning missing

but excell still multiply a certain nummer with 1, when i write S or M

All the best
Grenaa Music school
--
Grenaa Music School
Denmark



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default S & M equal to 1

Hi,
I don't fully understand your question so can you give an example?

"Grenaa Music school" wrote:

I need
S = 1
M= 1

Ex:
S meaning sick
M meaning missing

but excell still multiply a certain nummer with 1, when i write S or M

All the best
Grenaa Music school
--
Grenaa Music School
Denmark

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default S & M equal to 1

Hi
I´ll try

A teacher teaches a student.
Every lesson is 25 min.
If the student appears
he just write
1
in a columm.
At the end of the month he has written a certain amount 1´s ..!
=SUM(C6:N6)*B6
B6 is 25
and from C6 to N6 you can put in 1
BUT
If the student doesn´t appear get sick or whatever
we need to know, but we need to still pay the teacher aka we need to collect
minuts.
So
S (meaning Sick)
M (meaning missing)
just have the same effect as if you write 1
aka
S = 1
M = 1
and it multiplies into ex. 10 (llessons)* 25 min. = 250 min.
I´m not and expert at all, so I have to explain it in a very "nonexpert" way.

All the Best
SBX
Grenaa Music Shcool

I´ll try out the other suggestions!
--
Grenaa Music School
Denmark


"Toppers" wrote:

Hi,
I don't fully understand your question so can you give an example?

"Grenaa Music school" wrote:

I need
S = 1
M= 1

Ex:
S meaning sick
M meaning missing

but excell still multiply a certain nummer with 1, when i write S or M

All the best
Grenaa Music school
--
Grenaa Music School
Denmark



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default S & M equal to 1

=sum(countif(C6:N6,{"S","M",1}))*B6

--
Regards,
Tom Ogilvy


"Grenaa Music school" wrote in
message ...
Hi
I´ll try

A teacher teaches a student.
Every lesson is 25 min.
If the student appears
he just write
1
in a columm.
At the end of the month he has written a certain amount 1´s ..!
=SUM(C6:N6)*B6
B6 is 25
and from C6 to N6 you can put in 1
BUT
If the student doesn´t appear get sick or whatever
we need to know, but we need to still pay the teacher aka we need to

collect
minuts.
So
S (meaning Sick)
M (meaning missing)
just have the same effect as if you write 1
aka
S = 1
M = 1
and it multiplies into ex. 10 (llessons)* 25 min. = 250 min.
I´m not and expert at all, so I have to explain it in a very "nonexpert"

way.

All the Best
SBX
Grenaa Music Shcool

I´ll try out the other suggestions!
--
Grenaa Music School
Denmark


"Toppers" wrote:

Hi,
I don't fully understand your question so can you give an

example?

"Grenaa Music school" wrote:

I need
S = 1
M= 1

Ex:
S meaning sick
M meaning missing

but excell still multiply a certain nummer with 1, when i write S or M

All the best
Grenaa Music school
--
Grenaa Music School
Denmark



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
can I make cell "yes" equal 1, "no" equal 0 can I make cell yes equal 1, no equa Excel Discussion (Misc queries) 4 April 22nd 23 06:09 AM
CountIF(A9:A20, B9 not equal B10, B10 not equal B11, etc.) Red Herald Excel Worksheet Functions 2 November 13th 08 12:11 AM
lower and upper case equal on spreadsheet but not equal in VB don Excel Programming 2 March 13th 05 12:04 AM
Getting 0 to equal 1 soxn4n04 Excel Worksheet Functions 9 November 30th 04 04:15 PM
Like or Equal Dave Peterson[_3_] Excel Programming 0 May 25th 04 02:09 AM


All times are GMT +1. The time now is 02:14 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"