recogonize either "c" or "ss" as value of 24

CAPT.PT

New Member
Joined
Mar 2, 2002
Messages
32
"C" MEANS A MAN IS AT CENTRAL STATION
"SS" MEANS HE IS AT A SOUTH SIDE STATION
BUT ON ANOTHER WORKSHEET I WANT IT TO PUT THE VALUE OF "24" IN FOR EITHER "C" OR "SS".
IT WORKS NOW WITH THIS FORMULA FOR THE "C"!
COUNTIF('DAILYLOG"!D6,"C")*24
BUT IT ONLY WILL RECOGNIZE THE "C"
ANY HELP,, ANY ONE????
This message was edited by CAPT.PT on 2002-03-03 16:52
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
On 2002-03-03 17:10, Dave Hawley wrote:
Try

=IF(OR('DAILYLOG"!D6="C",'DAILYLOG"!D6="SS"),24,"")
thanks Dave...but it didn't work!
I COPIED IT-PASTED IT SO i DIDN'T GET IT WRONG...BUT IT DIDN'T WORK
 
Upvote 0
I actualy copied and pasted your sheet reference, which is why I got it wrong :eek:)

Try:

=IF(OR('Daily Log'!D6="C",'Daily Log'!D6="SS"),24,"")
 
Upvote 0
On 2002-03-03 16:50, CAPT.PT wrote:
"C" MEANS A MAN IS AT CENTRAL STATION
"SS" MEANS HE IS AT A SOUTH SIDE STATION
BUT ON ANOTHER WORKSHEET I WANT IT TO PUT THE VALUE OF "24" IN FOR EITHER "C" OR "SS".
IT WORKS NOW WITH THIS FORMULA FOR THE "C"!
COUNTIF('DAILYLOG"!D6,"C")*24
BUT IT ONLY WILL RECOGNIZE THE "C"
ANY HELP,, ANY ONE????
This message was edited by CAPT.PT on 2002-03-03 16:52

Not sure I understand fully, also because you didn't tell what to compute when DAILYLOG!D6 does not house one of {"C","SS"}, but try:

=24*((DAILYLOG!D6="C")+(DAILYLOG!D6="SS"))

If D6 has values with spaces around, you might not get the result. You can of course try:

=24*((TRIM(DAILYLOG!D6)="C")+(TRIM(DAILYLOG!D6)="SS"))

to check that out.
 
Upvote 0
WHEN i PUT IN YOUR FORMULA i GET A #VALUE RETURN
i HAVE A WORKSHEET CALLED DAILY LOG..ON IT i PUT IN EITHER A "C" OR "SS MEANING ...WHATEVE....ON ANOTHER WORKSHEET CALLED "flsa" I REFER BACK TO THE DAILY LOG WORKSHEET AND LOOK AT THE "C" OR "SS", BUT NOW i WANT THEM TO BE RECOGNIZED AS THE NUMBER OR VALUE OF 24??? DOES THAT HELP??
 
Upvote 0

Forum statistics

Threads
1,213,527
Messages
6,114,142
Members
448,551
Latest member
Sienna de Souza

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
Back
Top