Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 29
Default Count if a number in a cell

I'm looking a way to count or subtract two numbers if any on cells , if
there is a number, or 0, in a different cell.

N7 is the cell for the formula,
H7 the one if number found then
subtract L7-H7, but if there is no number on
L7, just show the same number of H7 on N7.


Any hint will be helpful...
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,480
Default Count if a number in a cell

Hi
Try
=IF(L7="",H7,H7-L7)

--
Regards
Roger Govier

"JC-PS" wrote in message
...
I'm looking a way to count or subtract two numbers if any on cells , if
there is a number, or 0, in a different cell.

N7 is the cell for the formula,
H7 the one if number found then
subtract L7-H7, but if there is no number on
L7, just show the same number of H7 on N7.


Any hint will be helpful...


  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 10,593
Default Count if a number in a cell

Doesn't =H7-L7 do just that?

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Roger Govier" <roger@technology4unospamdotcodotuk wrote in message
...
Hi
Try
=IF(L7="",H7,H7-L7)

--
Regards
Roger Govier

"JC-PS" wrote in message
...
I'm looking a way to count or subtract two numbers if any on cells ,
if
there is a number, or 0, in a different cell.

N7 is the cell for the formula,
H7 the one if number found then
subtract L7-H7, but if there is no number on
L7, just show the same number of H7 on N7.


Any hint will be helpful...




  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 29
Default Count if a number in a cell



"Bob Phillips" wrote:

Doesn't =H7-L7 do just that?

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Roger Govier" <roger@technology4unospamdotcodotuk wrote in message
...
Hi
Try
=IF(L7="",H7,H7-L7)

--
Regards
Roger Govier

"JC-PS" wrote in message
...
I'm looking a way to count or subtract two numbers if any on cells ,
if
there is a number, or 0, in a different cell.

N7 is the cell for the formula,
H7 the one if number found then
subtract L7-H7, but if there is no number on
L7, just show the same number of H7 on N7.

Any hint will be helpful...




Thank you. Up to the moment I'm trying with
=IF(H7<0,L7+H7,"-") somehow fine

and doing the work. But got problems on next step as I'll describe
hereafter.
M7 "=IF(L7="",H7,H7-L7)" is working perfectly. Now under the results of M7 or on M8, & using the previous example, multiply it by D2*2
when
M7 is negative and results should end up on positive value because of
Total column. I tried with =IF(M7="",-M7*D2*2) but no so good.
M8 if neg=M7*D2*2 but in absolute value. Any help :D

  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 29
Default Count if a number in a cell



"JC-PS" wrote:



"Bob Phillips" wrote:

Doesn't =H7-L7 do just that?

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Roger Govier" <roger@technology4unospamdotcodotuk wrote in message
...
Hi
Try
=IF(L7="",H7,H7-L7)

--
Regards
Roger Govier

"JC-PS" wrote in message
...
I'm looking a way to count or subtract two numbers if any on cells ,
if
there is a number, or 0, in a different cell.

N7 is the cell for the formula,
H7 the one if number found then
subtract L7-H7, but if there is no number on
L7, just show the same number of H7 on N7.

Any hint will be helpful...



Thank you. Up to the moment I'm trying with
=IF(H7<0,L7+H7,"-") somehow fine

and doing the work. But got problems on next step as I'll describe
hereafter.
M7 "=IF(L7="",H7,H7-L7)" is working perfectly. Now under the
results of M7 or on M8, & using the previous example, multiply it by
D2*2 when
M7 is negative and results should end up on positive value because
of Total column. I tried with =IF(M7="",-M7*D2*2) but no so good.
M8 if neg=M7*D2*2 but in absolute value. By the way, up to
a previous moment I was weighing up with the next,
=IF(M7<0,-M7*D2*2,"")... any better suggestion.



  #6   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 29
Default Count if a number in a cell


=IF(L8="",G8<0,IF(M7<0,-M7*D2*2,L8)) any how working better
even when M7 is a negative or a positive number, incl 0. ;D


  #7   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 29
Default Count if a number in a cell



"JC-PS" wrote:


=IF(L8="",G8<0,IF(M7<0,-M7*D2*2,L8)) any how working better
even when M7 is a negative or a positive number, incl 0. ;D
A correction,
=IF(L8="",G8<0,IF(G7<0,G7*D2*2,L8)), much better :D

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
Count the number of changes to a cell RMan Excel Worksheet Functions 5 October 5th 07 09:50 PM
How can I count the number of characters on a cell? EddieDial800 Excel Discussion (Misc queries) 11 May 22nd 07 04:29 PM
count each cell that have a number and take that number and count. Vick Excel Discussion (Misc queries) 3 May 19th 06 01:51 AM
Count number of times a specific number is displayed in a cell ran subs Excel Worksheet Functions 1 June 27th 05 05:01 PM
Count the number of words in a cell! Doom3 Excel Worksheet Functions 4 November 23rd 04 06:00 AM


All times are GMT +1. The time now is 05:03 PM.

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"