#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 180
Default IF FORMULA

Hi:

I am trying to write an if formula that if B2 is equal to a specific date in
a range of dates then it is the end of a pay period, if B2 is equal to a date
in a second range of dates then it state pay day.

I have set up two tables with dates. One has pay period ending dates and the
other table has pay day dates.

I keep getting a Value error.

Please help.
--
Donna
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 464
Default IF FORMULA

=IF(COUNTIF(A1:A10,B2),"end of pay period",IF(COUNTIF(C1:C10,B2),"pay
day",""))

Change ranges to suit.



--
Regards
Dave Hawley
www.ozgrid.com
"Donna" wrote in message
...
Hi:

I am trying to write an if formula that if B2 is equal to a specific date
in
a range of dates then it is the end of a pay period, if B2 is equal to a
date
in a second range of dates then it state pay day.

I have set up two tables with dates. One has pay period ending dates and
the
other table has pay day dates.

I keep getting a Value error.

Please help.
--
Donna


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 180
Default IF FORMULA

Thank you so much!!
--
Donna


"Donna" wrote:

Hi:

I am trying to write an if formula that if B2 is equal to a specific date in
a range of dates then it is the end of a pay period, if B2 is equal to a date
in a second range of dates then it state pay day.

I have set up two tables with dates. One has pay period ending dates and the
other table has pay day dates.

I keep getting a Value error.

Please help.
--
Donna

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



All times are GMT +1. The time now is 10:43 PM.

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

About Us

"It's about Microsoft Excel"