#1   Report Post  
Posted to microsoft.public.excel.misc
Therese
 
Posts: n/a
Default If formular

Hi
I want to sum the numbers i have written in row a. In row b, I have a row
where I put an x when I want the number beside(the number in row a) to
dissappear. I have tried cond. formatting, but the sum at the bottom counts
the numbers anyway off course. How do I do that? Does anyone have an IF
formular with a circular reference or do I really have to make a new row wih
the numbers?
Thanks in advance :0)
--
Therese
  #2   Report Post  
Posted to microsoft.public.excel.misc
bpeltzer
 
Posts: n/a
Default If formular

The sumif function will conditionally add numbers in one range based on a
criteria in a different range. So =sumif(b:b,"x",a:a) will add all the
values in a where you have entered an x in b. If you're using x to exclude
(vs include), try =sum(a:a)-sumif(b:b,"x",a:a)

"Therese" wrote:

Hi
I want to sum the numbers i have written in row a. In row b, I have a row
where I put an x when I want the number beside(the number in row a) to
dissappear. I have tried cond. formatting, but the sum at the bottom counts
the numbers anyway off course. How do I do that? Does anyone have an IF
formular with a circular reference or do I really have to make a new row wih
the numbers?
Thanks in advance :0)
--
Therese

  #3   Report Post  
Posted to microsoft.public.excel.misc
daddylonglegs
 
Posts: n/a
Default If formular


You could use the conditional formatting then a formula like

=SUMIF(B:B,"<x",A:A)

only sums values in column A where there is not an "x" in column b....


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=528332

  #4   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default If formular

If you just want to sum a where b is not and x

=SUMPRODUCT(--(B2:B500<"x"),A2:A500)

you can use conditional formatting to "hide" the numbers

select A2:A500 with A2 as active, do formatconditional formatting, formula
is then use

=$B2="x"

click the format button and select white font, click OK twice

all other options would require VBA to clear numbers from A



--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com


"Therese" wrote in message
...
Hi
I want to sum the numbers i have written in row a. In row b, I have a row
where I put an x when I want the number beside(the number in row a) to
dissappear. I have tried cond. formatting, but the sum at the bottom
counts
the numbers anyway off course. How do I do that? Does anyone have an IF
formular with a circular reference or do I really have to make a new row
wih
the numbers?
Thanks in advance :0)
--
Therese



  #5   Report Post  
Posted to microsoft.public.excel.misc
Therese
 
Posts: n/a
Default If formular

Hey you guys you are terrific. Thanks
--
Therese


"daddylonglegs" skrev:


You could use the conditional formatting then a formula like

=SUMIF(B:B,"<x",A:A)

only sums values in column A where there is not an "x" in column b....


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=528332




  #6   Report Post  
Posted to microsoft.public.excel.misc
Sloth
 
Posts: n/a
Default If formular

you could also use the autofilter to filter out every row with an x. You
would need to replace SUM with SUBTOTAL. The SUBTOTAL function ingnores all
hidden rows.

"Therese" wrote:

Hi
I want to sum the numbers i have written in row a. In row b, I have a row
where I put an x when I want the number beside(the number in row a) to
dissappear. I have tried cond. formatting, but the sum at the bottom counts
the numbers anyway off course. How do I do that? Does anyone have an IF
formular with a circular reference or do I really have to make a new row wih
the numbers?
Thanks in advance :0)
--
Therese

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
Reducing Formular length Nello Excel Discussion (Misc queries) 2 June 15th 05 06:32 PM
No showing of cellnumbers used in formular with colour /Maria Excel Worksheet Functions 5 June 3rd 05 12:52 PM
round up a percentage formular RoseR Excel Worksheet Functions 4 May 19th 05 02:17 PM
array formular LA Excel Worksheet Functions 4 April 21st 05 03:30 AM
How to protect the formular joy Excel Discussion (Misc queries) 1 February 20th 05 05:12 AM


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

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"