Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 331
Default One column determins what formula to use

I have Column C that has either M or F in the cell.
i would like to have a calculation in another column G
that if they put a M in column C it would use one formula and if they put a
F in Column C it would use another formula.

what would be the proper way to go about this?

Thanks in Advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default One column determins what formula to use

Try a structure like this...

=IF(C1="M",<your one formula,IF(C1="F",<your other formula,""))

--
Rick (MVP - Excel)


"Greg" wrote in message
...
I have Column C that has either M or F in the cell.
i would like to have a calculation in another column G
that if they put a M in column C it would use one formula and if they put
a
F in Column C it would use another formula.

what would be the proper way to go about this?

Thanks in Advance


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 331
Default One column determins what formula to use

Thank You!
i used this formula. i validated the M or F column to only those two values.
=IF(B6="M",($C$2-C6)*$B$2,($C$3-C6)*$B$3)

because someone can go over the Absolute values of C2 and C3 i get negative
numbers. Is there something i can insert to say if 0ver that value of C2 or
C3 it will =0?

Thanks Again.

"Rick Rothstein" wrote:

Try a structure like this...

=IF(C1="M",<your one formula,IF(C1="F",<your other formula,""))

--
Rick (MVP - Excel)


"Greg" wrote in message
...
I have Column C that has either M or F in the cell.
i would like to have a calculation in another column G
that if they put a M in column C it would use one formula and if they put
a
F in Column C it would use another formula.

what would be the proper way to go about this?

Thanks in Advance


.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default One column determins what formula to use

This may not be exactly what you want, but hopefully it will get you on the
right path:

=IF(B6="M",IF($C$2-C6<0,0,($C$2-C6)*$B$2),IF($C$3-C6<0,0,($C$3-C6)*$B$3))

HTH
--
Data Hog


"Greg" wrote:

Thank You!
i used this formula. i validated the M or F column to only those two values.
=IF(B6="M",($C$2-C6)*$B$2,($C$3-C6)*$B$3)

because someone can go over the Absolute values of C2 and C3 i get negative
numbers. Is there something i can insert to say if 0ver that value of C2 or
C3 it will =0?

Thanks Again.

"Rick Rothstein" wrote:

Try a structure like this...

=IF(C1="M",<your one formula,IF(C1="F",<your other formula,""))

--
Rick (MVP - Excel)


"Greg" wrote in message
...
I have Column C that has either M or F in the cell.
i would like to have a calculation in another column G
that if they put a M in column C it would use one formula and if they put
a
F in Column C it would use another formula.

what would be the proper way to go about this?

Thanks in Advance


.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 331
Default One column determins what formula to use

You Nailed It!!
It works as i was asking.
i was a little off in my formula. I was playing with it after my previous
post. i think my error was in this IF statement. my formula was the same
except for these statements after it "M", or "F",
IF(C6<=$C$2,

Thanks a Bunch. i was running out of things that i know to try.


"J_Knowles" wrote:

This may not be exactly what you want, but hopefully it will get you on the
right path:

=IF(B6="M",IF($C$2-C6<0,0,($C$2-C6)*$B$2),IF($C$3-C6<0,0,($C$3-C6)*$B$3))

HTH
--
Data Hog


"Greg" wrote:

Thank You!
i used this formula. i validated the M or F column to only those two values.
=IF(B6="M",($C$2-C6)*$B$2,($C$3-C6)*$B$3)

because someone can go over the Absolute values of C2 and C3 i get negative
numbers. Is there something i can insert to say if 0ver that value of C2 or
C3 it will =0?

Thanks Again.

"Rick Rothstein" wrote:

Try a structure like this...

=IF(C1="M",<your one formula,IF(C1="F",<your other formula,""))

--
Rick (MVP - Excel)


"Greg" wrote in message
...
I have Column C that has either M or F in the cell.
i would like to have a calculation in another column G
that if they put a M in column C it would use one formula and if they put
a
F in Column C it would use another formula.

what would be the proper way to go about this?

Thanks in Advance

.

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
conditional formatting formula to highlight items on column B inrelation to column A hombreazul Excel Discussion (Misc queries) 4 March 4th 12 02:43 PM
A formula or macro that will place the date in an adjacent column Bany time something is typed in column A Mike C[_5_] Excel Programming 4 February 27th 08 01:57 AM
highest # in a column A & returns answer from column B Formula Randy Excel Discussion (Misc queries) 6 October 30th 07 10:17 PM
Copying a formula in a blank column as far as data in previous column basildon Excel Programming 1 December 16th 05 03:32 PM
column to column conditional formatting won't work, need formula rrupp Excel Worksheet Functions 1 August 23rd 05 10:06 PM


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