Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Admiral70
 
Posts: n/a
Default IF statements/formula problem

I need to tell column B if there there is something in column C greater
than zero then use column A figure. Otherwise use A/2.

A B C D
Savings Shared Flat fee TOTAL
$52.66 $26.33 $15.00 $15.00

Can anyone help me with this formula?

Thanks in advanced.

  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

=A2/if(c0,2,1)

"Admiral70" wrote:

I need to tell column B if there there is something in column C greater
than zero then use column A figure. Otherwise use A/2.

A B C D
Savings Shared Flat fee TOTAL
$52.66 $26.33 $15.00 $15.00

Can anyone help me with this formula?

Thanks in advanced.


  #3   Report Post  
Duke Carey
 
Posts: n/a
Default

=a1/if(c10,2,1)

apologies if this came through 2 times



"Admiral70" wrote:

I need to tell column B if there there is something in column C greater
than zero then use column A figure. Otherwise use A/2.

A B C D
Savings Shared Flat fee TOTAL
$52.66 $26.33 $15.00 $15.00

Can anyone help me with this formula?

Thanks in advanced.


  #4   Report Post  
db
 
Posts: n/a
Default

Duke -
I believe you have the 2 and the 1 switched around in your formula, it
should be:

=a1/if(c10,1,2)

--
Regards,
db


"Duke Carey" wrote:

=a1/if(c10,2,1)

apologies if this came through 2 times



"Admiral70" wrote:

I need to tell column B if there there is something in column C greater
than zero then use column A figure. Otherwise use A/2.

A B C D
Savings Shared Flat fee TOTAL
$52.66 $26.33 $15.00 $15.00

Can anyone help me with this formula?

Thanks in advanced.


  #5   Report Post  
db
 
Posts: n/a
Default

Admiral -
This will work for the first row, drag down for however far you need the
range to be:

=IF(C10,A1,A1/2)

--
Regards,
db


"Admiral70" wrote:

I need to tell column B if there there is something in column C greater
than zero then use column A figure. Otherwise use A/2.

A B C D
Savings Shared Flat fee TOTAL
$52.66 $26.33 $15.00 $15.00

Can anyone help me with this formula?

Thanks in advanced.




  #6   Report Post  
Admiral70
 
Posts: n/a
Default

Thanks for such a quick response. I think this will work for what I
need.

Thanks again.

  #7   Report Post  
Admiral70
 
Posts: n/a
Default

This works good, now what if G28 is a negative number. Is there a way
to modify the following formula to not show a negative and instead show
a - (dash)?

=IF(K280,G28,G28/2)

  #8   Report Post  
db
 
Posts: n/a
Default

I'm a little confused by what you mean. Do you mean as it stands now Excel
is showing parenthesis for negative numbers? For example:

It is showing: ($40.45)
You want it to show: $-40.45

--
Regards,
db


"Admiral70" wrote:

This works good, now what if G28 is a negative number. Is there a way
to modify the following formula to not show a negative and instead show
a - (dash)?

=IF(K280,G28,G28/2)


  #9   Report Post  
Admiral70
 
Posts: n/a
Default

No, sorry, if it shows ($40.45) then I want to show just a - no # at
all, not even a zero.

Thanks for clarifying.

  #10   Report Post  
Sandy Mann
 
Posts: n/a
Default

Try:

=IF(G28<0,0,IF(K280,G28,G28/2))

and format the cell as Accounting with no currency sign if necessary but
note that the value stored in the cell will now be zero.

--
HTH

Sandy

Replace@mailinator with @tiscali.co.uk


"Admiral70" wrote in message
ups.com...
This works good, now what if G28 is a negative number. Is there a way
to modify the following formula to not show a negative and instead show
a - (dash)?

=IF(K280,G28,G28/2)





  #11   Report Post  
db
 
Posts: n/a
Default

Just a little update to this formula, you can do the same thing without
having to format it as accounting:

=IF(G28<0,"-",IF(K280,G28,G28/2))

--
Regards,
db


"Sandy Mann" wrote:

Try:

=IF(G28<0,0,IF(K280,G28,G28/2))

and format the cell as Accounting with no currency sign if necessary but
note that the value stored in the cell will now be zero.

--
HTH

Sandy

Replace@mailinator with @tiscali.co.uk


"Admiral70" wrote in message
ups.com...
This works good, now what if G28 is a negative number. Is there a way
to modify the following formula to not show a negative and instead show
a - (dash)?

=IF(K280,G28,G28/2)




  #13   Report Post  
Admiral70
 
Posts: n/a
Default

Ok, so the number is zero, but will show a dash. Is the dash part of
the Accounting format?

Thanks

  #15   Report Post  
Morrigan
 
Posts: n/a
Default


=IF(C0,A,A/2)


Admiral70 Wrote:
I need to tell column B if there there is something in column C greater
than zero then use column A figure. Otherwise use A/2.

A B C D
Savings Shared Flat fee TOTAL
$52.66 $26.33 $15.00 $15.00

Can anyone help me with this formula?

Thanks in advanced.



--
Morrigan
------------------------------------------------------------------------
Morrigan's Profile: http://www.excelforum.com/member.php...fo&userid=7094
View this thread: http://www.excelforum.com/showthread...hreadid=398295



  #16   Report Post  
Admiral70
 
Posts: n/a
Default

This works good, now what if G28 is a negative number. Is there a way
to modify the following formula to not show a negative and instead show

a - (dash)?


=IF(K280,G28,G28/2)


Any ideas? Thanks

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
Urgent Help Required on Excel Macro Problem Sachin Shah Excel Discussion (Misc queries) 1 August 17th 05 06:26 AM
Excel Display Problem Bill Martin -- (Remove NOSPAM from address) Excel Discussion (Misc queries) 0 April 19th 05 05:25 PM
Problem with Array Formulas and ISNUMBER Henrik Excel Worksheet Functions 1 February 10th 05 12:31 AM
Freeze Pane problem in shared workbooks JM Excel Discussion (Misc queries) 1 February 1st 05 12:04 AM
Row Autofit problem Excel 2003 Matthias Klaey Excel Discussion (Misc queries) 0 January 19th 05 05:33 PM


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