#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 55
Default Formula with blanks

Excel 2007
Looking for a formula that will do the follwing;
If cell A12 equals 0 then cell C12 should be blank, if cell A12 equals 1
then cell C12 should equal the sum of cell H5
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 248
Default Formula with blanks

=IF(A12=0,"",IF(A12=1,H12,"neither one or zero"))

You can replace "neither one or zero" with whatever you want in this
situation...
-------------------------------------
Pl. click ''''Yes'''' if this was helpful...



"Canon" wrote:

Excel 2007
Looking for a formula that will do the follwing;
If cell A12 equals 0 then cell C12 should be blank, if cell A12 equals 1
then cell C12 should equal the sum of cell H5

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 55
Default Formula with blanks

Thanks Sheeloo, but what do I replace that with?

"Sheeloo" wrote:

=IF(A12=0,"",IF(A12=1,H12,"neither one or zero"))

You can replace "neither one or zero" with whatever you want in this
situation...
-------------------------------------
Pl. click ''''Yes'''' if this was helpful...



"Canon" wrote:

Excel 2007
Looking for a formula that will do the follwing;
If cell A12 equals 0 then cell C12 should be blank, if cell A12 equals 1
then cell C12 should equal the sum of cell H5

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Formula with blanks

You can replace "neither one or zero" with whatever result you want from the
formula when A12 is neither one nor zero.
You will doubtless have realised that the H12 in the formula should have
been H5.
--
David Biddulph

Canon wrote:
Thanks Sheeloo, but what do I replace that with?

"Sheeloo" wrote:

=IF(A12=0,"",IF(A12=1,H12,"neither one or zero"))

You can replace "neither one or zero" with whatever you want in this
situation...


"Canon" wrote:

Excel 2007
Looking for a formula that will do the follwing;
If cell A12 equals 0 then cell C12 should be blank, if cell A12
equals 1 then cell C12 should equal the sum of cell H5



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 248
Default Formula with blanks


Thanks David for pointing that out...

"David Biddulph" wrote:

You can replace "neither one or zero" with whatever result you want from the
formula when A12 is neither one nor zero.
You will doubtless have realised that the H12 in the formula should have
been H5.
--
David Biddulph

Canon wrote:
Thanks Sheeloo, but what do I replace that with?

"Sheeloo" wrote:

=IF(A12=0,"",IF(A12=1,H12,"neither one or zero"))

You can replace "neither one or zero" with whatever you want in this
situation...


"Canon" wrote:

Excel 2007
Looking for a formula that will do the follwing;
If cell A12 equals 0 then cell C12 should be blank, if cell A12
equals 1 then cell C12 should equal the sum of cell H5






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 55
Default Formula with blanks

Sorry guys, i'm not picking this up. I need cell C12 to pull the number from
cell H5 when cell A12 is 1, and cell C12 to be blank when cell A12 is 0

"David Biddulph" wrote:

You can replace "neither one or zero" with whatever result you want from the
formula when A12 is neither one nor zero.
You will doubtless have realised that the H12 in the formula should have
been H5.
--
David Biddulph

Canon wrote:
Thanks Sheeloo, but what do I replace that with?

"Sheeloo" wrote:

=IF(A12=0,"",IF(A12=1,H12,"neither one or zero"))

You can replace "neither one or zero" with whatever you want in this
situation...


"Canon" wrote:

Excel 2007
Looking for a formula that will do the follwing;
If cell A12 equals 0 then cell C12 should be blank, if cell A12
equals 1 then cell C12 should equal the sum of cell H5




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 248
Default Formula with blanks

Canon,

Use this in C12

=IF(A12=1,H5,IF(A12=0,""))

If A12 is 1 it will give you the value in H5, blank if A12 is 0, FALSE if it
is neither 1 or 0
-------------------------------------
Pl. click ''''Yes'''' if this was helpful...



"Canon" wrote:

Sorry guys, i'm not picking this up. I need cell C12 to pull the number from
cell H5 when cell A12 is 1, and cell C12 to be blank when cell A12 is 0

"David Biddulph" wrote:

You can replace "neither one or zero" with whatever result you want from the
formula when A12 is neither one nor zero.
You will doubtless have realised that the H12 in the formula should have
been H5.
--
David Biddulph

Canon wrote:
Thanks Sheeloo, but what do I replace that with?

"Sheeloo" wrote:

=IF(A12=0,"",IF(A12=1,H12,"neither one or zero"))

You can replace "neither one or zero" with whatever you want in this
situation...


"Canon" wrote:

Excel 2007
Looking for a formula that will do the follwing;
If cell A12 equals 0 then cell C12 should be blank, if cell A12
equals 1 then cell C12 should equal the sum of cell H5




  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Formula with blanks

Yes, you'd already said that.

You said what you wanted if A12 is 0.
You said what you wanted if A12 is 1.
You *didn't* say what you wanted if A12 is neither 0 or 1.
--
David Biddulph

Canon wrote:
Sorry guys, i'm not picking this up. I need cell C12 to pull the
number from cell H5 when cell A12 is 1, and cell C12 to be blank when
cell A12 is 0

"David Biddulph" wrote:

You can replace "neither one or zero" with whatever result you want
from the formula when A12 is neither one nor zero.
You will doubtless have realised that the H12 in the formula should
have been H5.
--
David Biddulph

Canon wrote:
Thanks Sheeloo, but what do I replace that with?

"Sheeloo" wrote:

=IF(A12=0,"",IF(A12=1,H12,"neither one or zero"))

You can replace "neither one or zero" with whatever you want in
this situation...


"Canon" wrote:

Excel 2007
Looking for a formula that will do the follwing;
If cell A12 equals 0 then cell C12 should be blank, if cell A12
equals 1 then cell C12 should equal the sum of cell H5



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
Formula Blanks stan Excel Discussion (Misc queries) 2 April 3rd 08 02:35 PM
Sumproduct copying blanks or how to insert zero into blanks asg2307 Excel Worksheet Functions 4 April 4th 07 07:26 PM
copy range of cells with blanks then paste without blanks justaguyfromky Excel Worksheet Functions 1 September 3rd 06 07:56 PM
replace blanks using formula susiecc60 Excel Worksheet Functions 1 March 27th 06 02:16 AM
Paste Special Skip Blanks not skipping blanks, but overwriting... gsrosin Excel Discussion (Misc queries) 0 February 22nd 05 03:33 AM


All times are GMT +1. The time now is 01:33 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"