Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Adding two columns to determine number of days to pay

When I put in the formulat =IF(M8=O8,Q8+N8-1) I get the
column to subtract on for the duplication - however it is
not simply adding my colums q8 and N8 if they do not
equal - can you help me - what is wrong with this
formula?? HELP - Thanks Katherine
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Adding two columns to determine number of days to pay

Hi
=IF(M8=O8,Q8+N8-1,Q8+N8)

or shorter:
=Q8+N8-(M8=O8)

--
Regards
Frank Kabel
Frankfurt, Germany

"Katherine" schrieb im
Newsbeitrag ...
When I put in the formulat =IF(M8=O8,Q8+N8-1) I get the
column to subtract on for the duplication - however it is
not simply adding my colums q8 and N8 if they do not
equal - can you help me - what is wrong with this
formula?? HELP - Thanks Katherine


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default Adding two columns to determine number of days to pay

Hi Katherine,

=IF(M8=O8,Q8+N8-1,Q8+N8)

--

Kind Regards,

Niek Otten

Microsoft MVP - Excel

"Katherine" wrote in message
...
When I put in the formulat =IF(M8=O8,Q8+N8-1) I get the
column to subtract on for the duplication - however it is
not simply adding my colums q8 and N8 if they do not
equal - can you help me - what is wrong with this
formula?? HELP - Thanks Katherine



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default Adding two columns to determine number of days to pay

The only thing "wrong" i see is maybe the formula is
incomplete. =if(M8=O8,Q8+N8-1,"")
I played with the formula in xl2k. if M8 and O8 are not
equal i get a FALSE in the cell. adding the ,"" leaves the
cell blank(looking).You may wish to put another condition
there. "" is basicly saying do nothing. If M8 and O8 are
equal then the formula adds as expected.

-----Original Message-----
When I put in the formulat =IF(M8=O8,Q8+N8-1) I get the
column to subtract on for the duplication - however it is
not simply adding my colums q8 and N8 if they do not
equal - can you help me - what is wrong with this
formula?? HELP - Thanks Katherine
.

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date formula to determine the number of days jcheko Excel Worksheet Functions 4 March 6th 09 04:39 PM
Determine number of days Jack Excel Worksheet Functions 1 January 10th 06 01:34 PM
What is the formula for adding a number of days to an existing dat Ivan Excel Worksheet Functions 1 May 4th 05 03:00 AM
Input columns with number of days in month dove_g Excel Programming 3 September 3rd 03 04:15 PM
adding changing number of days Aivars Excel Programming 2 July 8th 03 03:26 PM


All times are GMT +1. The time now is 03:25 AM.

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

About Us

"It's about Microsoft Excel"