ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   logical (if a1=specific word, can c1 = value entered in a2?) (https://www.excelbanter.com/excel-worksheet-functions/262127-logical-if-a1%3Dspecific-word-can-c1-%3D-value-entered-a2.html)

Mel

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.)

Matt Geare[_2_]

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.)


Fred Smith[_4_]

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.)




All times are GMT +1. The time now is 09:55 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com