BellaShore

New Member
Joined
Jul 25, 2019
Messages
4
Hi,
I need to create an IF formula based the following information (my goal is to have a column with hourly rate per employee, whether they are hourly or salary so I can do a vacation accrual - see details below):

col BC this column says either SALARY of HOURLY on each line (by employee)
col BD this column has an annual salary amount or an hourly $ amount by employee - depending on which they are in colummBC

I need to add another column with an IF function that will return either the salary amount in COL BD divided by 1827 hours (to get an hourly rate), if column BC says salary, or if they are HOURLY in col BC, then the rate in COLUMN BD

The formula I tried is not working: =IF(BC2=SALARY,BD2/1827,IF(BC2=HOURLY,BD2))

Sounds pretty basic and I am sitting here with an Excel Function book - but thought someone might be able to help.
Bella
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Hi, Welcome to the Message Board

Try

=IF(BC2="SALARY",BD2/1827,IF(BC2="HOURLY",BD2,""))
 
Last edited:
Upvote 0
Thanks so much. This worked great for the salary lines, but returned nothing for the hourly lines.

Pay CodePay Rate Amount
SALARY59100.49 $ 32.35
HOUR11.2
SALARY95000.1 $ 52.00
SALARY42000.14 $ 22.99
SALARY84472.15 $ 46.24
HOUR12.75
HOUR17.02
HOUR12.75
<colgroup><col width="64" style="width: 48pt;"> <col width="114" style="width: 86pt; mso-width-source: userset; mso-width-alt: 4169;"> <col width="64" style="width: 48pt;"> <tbody> </tbody>
 
Upvote 0
The formula you put there was fro HOURLY that's why it is not returning anyvalue. If you are using HOUR then use below:

=IF(BC2="SALARY",BD2/1827,IF(BC2="HOUR",BD2,""))
 
Upvote 0
Just in case if it can be both HOUR or HOURLY or PER HOUR like that then use below:

=IF(BC2="SALARY",BD2/1827,SUMIF(BC2,"*HOUR*",BD2))
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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