Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default IF with multiple formula/variable

I'm trying to use IF with other variable but is not working.

What I have:

Colum G12 - NET Sallary
Colum I12 - 3 possibilities (MRM, ME, AB)
Colum J12 where I will have my formula.

I have another table with 3 datas:

MRM = 1,308 (P3)
ME = 1,566 (P4)
AB = 1,630 (P5)

What I need to do is the following:

J12 = IF I12 = "MRM" THAN G12*P3; IF I12 = "ME" THAN G12*P4; IF I12 = "AB"
THAN G12*P5

I need to multiply the sallary to one of the 3 variable depending on the
category: MRM, ME and AB.

Anybody knows if this is possible and how to do it?

Thanks in advance.

Marcus
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default IF with multiple formula/variable

Hi,
Try:
=IF(I12="MRM",G12*$P$3,IF(I12="ME",G12*$P$4,IF(I12 ="AB",G12*$P$5)))
Regards - Dave
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default IF with multiple formula/variable

Dave, It returned an error. Now is working with this:

(G12*VLOOKUP(I12;$O$3:$P$5;2;0))

But it took a while to get this formula. A person in another forum gave me
that.

Thanks a lot for your help.

"Dave" escreveu:

Hi,
Try:
=IF(I12="MRM",G12*$P$3,IF(I12="ME",G12*$P$4,IF(I12 ="AB",G12*$P$5)))
Regards - Dave

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default IF with multiple formula/variable

OK, Sorry about that. Thanks for the feedback.
Dave.
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 747
Default IF with multiple formula/variable

use this

=IF(I12="MRM",G12*P3,IF(I12="ME",G12*P4,IF(I12="AB ",G12*P5,"")))




On May 30, 5:34*pm, Mtavares
wrote:
I'm trying to use IF with other variable but is not working.

What I have:

Colum G12 - NET Sallary
Colum I12 - 3 possibilities (MRM, ME, AB)
Colum J12 where I will have my formula.

I have another table with 3 datas:

MRM = 1,308 (P3)
ME = 1,566 (P4)
AB = 1,630 (P5)

What I need to do is the following:

J12 = IF I12 = "MRM" THAN G12*P3; IF I12 = "ME" THAN G12*P4; IF I12 = "AB"
THAN G12*P5

I need to multiply the sallary to one of the 3 variable depending on the
category: MRM, ME and AB.

Anybody knows if this is possible and how to do it?

Thanks in advance.

Marcus




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default IF with multiple formula/variable

Thanks but this formula returned an formula error.

I could do with this:

(G12*VLOOKUP(I12;$O$3:$P$5;2;0))

Thanks a lot.


"muddan madhu" escreveu:

use this

=IF(I12="MRM",G12*P3,IF(I12="ME",G12*P4,IF(I12="AB ",G12*P5,"")))




On May 30, 5:34 pm, Mtavares
wrote:
I'm trying to use IF with other variable but is not working.

What I have:

Colum G12 - NET Sallary
Colum I12 - 3 possibilities (MRM, ME, AB)
Colum J12 where I will have my formula.

I have another table with 3 datas:

MRM = 1,308 (P3)
ME = 1,566 (P4)
AB = 1,630 (P5)

What I need to do is the following:

J12 = IF I12 = "MRM" THAN G12*P3; IF I12 = "ME" THAN G12*P4; IF I12 = "AB"
THAN G12*P5

I need to multiply the sallary to one of the 3 variable depending on the
category: MRM, ME and AB.

Anybody knows if this is possible and how to do it?

Thanks in advance.

Marcus



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
Multiple Variable Formula Help Beth Ann Excel Worksheet Functions 3 January 10th 08 01:26 AM
Multiple Variable Formula Ken Excel Discussion (Misc queries) 1 September 10th 07 04:38 AM
Multiple variable issue FadaSininho Excel Discussion (Misc queries) 1 August 17th 06 03:31 PM
Help - Pivot with multiple variable Firman-EID Excel Worksheet Functions 0 June 26th 06 12:57 PM
why is it saying sheetcnt is "variable not defined" how to do a global variable to share over multiple functions in vba for excel? Daniel Excel Worksheet Functions 1 July 9th 05 03:05 AM


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