A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

logical (if a1=specific word, can c1 = value entered in a2?)



 
 
Thread Tools Display Modes
  #1  
Old April 22nd, 2010, 02:41 AM posted to microsoft.public.excel.worksheet.functions
MEL
external usenet poster
 
Posts: 249
Default logical (if a1=specific word, can c1 = value entered in a2?)

I am trying to make a payroll sheet so that if someone enters the word "Stat"
into field a1, and then manually enters the number of hours worked into a2,
then c1 automatically displays the same value that a2 displays.

(I have 2 different columns at the end, one for regular hours and one for
stat hours, and I need them to display all of the regular hours into one
field and all of the stat hours into the column beside it.)
  #2  
Old April 22nd, 2010, 03:06 AM posted to microsoft.public.excel.worksheet.functions
Matt Geare[_2_]
external usenet poster
 
Posts: 18
Default logical (if a1=specific word, can c1 = value entered in a2?)

=IF(C1="Stat",A2,"")

"mel" wrote:

I am trying to make a payroll sheet so that if someone enters the word "Stat"
into field a1, and then manually enters the number of hours worked into a2,
then c1 automatically displays the same value that a2 displays.

(I have 2 different columns at the end, one for regular hours and one for
stat hours, and I need them to display all of the regular hours into one
field and all of the stat hours into the column beside it.)

  #3  
Old April 22nd, 2010, 03:29 AM posted to microsoft.public.excel.worksheet.functions
Fred Smith[_4_]
external usenet poster
 
Posts: 2,386
Default logical (if a1=specific word, can c1 = value entered in a2?)

In C1 you want:
=if(a1="stat",a2,"")

Regards,
Fred

"mel" wrote in message
...
I am trying to make a payroll sheet so that if someone enters the word
"Stat"
into field a1, and then manually enters the number of hours worked into
a2,
then c1 automatically displays the same value that a2 displays.

(I have 2 different columns at the end, one for regular hours and one for
stat hours, and I need them to display all of the regular hours into one
field and all of the stat hours into the column beside it.)


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:53 PM.


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