Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I have services in one column and rates in another.
I have a VLOOKUP formula =IF(A10,VLOOKUP(A1,brates,2,)," ") that works just fine and whenever a service in A1 is chosen the rate is entered based on ‘brates’ table. One of the services however is training (code CT) and the third column is for the number of training hours so rate depends on ## of training hours. I came up with the another IF formula =IF(A1="CT",N1*10,) that calculates total rate based on number of training hours times the base rate only when A1=CT . Both formulas work fine separately but I have difficult time combining it in one nested IF formula so bot IF conditions are taken into consideration. No matter what the correct rate is not calculated. What am I doing wrong? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi rtour957,
=IF(A1="CT",N1*10,IF(A10,VLOOKUP(A1,brates,2,)," ")) isabelle Le 2015-07-02 16:57, rtour957 a écrit : I have services in one column and rates in another. I have a VLOOKUP formula =IF(A10,VLOOKUP(A1,brates,2,)," ") that works just fine and whenever a service in A1 is chosen the rate is entered based on ‘brates’ table. One of the services however is training (code CT) and the third column is for the number of training hours so rate depends on ## of training hours. I came up with the another IF formula =IF(A1="CT",N1*10,) that calculates total rate based on number of training hours times the base rate only when A1=CT . Both formulas work fine separately but I have difficult time combining it in one nested IF formula so bot IF conditions are taken into consideration. No matter what the correct rate is not calculated. What am I doing wrong? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
=IF(A1="CT",N1*10,IF(A10,VLOOKUP(A1,brates,2,)," "))
Just curious... Why return a space character rather than zero or an empty string? -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi Garry ,
Le 2015-07-02 20:56, GS a écrit : Just curious... Why return a space character rather than zero or an empty string? because rtour957 says: "I have a VLOOKUP formula =IF(A10,VLOOKUP(A1,brates,2,)," ") that works" so... isabelle |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi Garry ,
Le 2015-07-02 20:56, GS a écrit : Just curious... Why return a space character rather than zero or an empty string? because rtour957 says: "I have a VLOOKUP formula =IF(A10,VLOOKUP(A1,brates,2,)," ") that works" so... isabelle Sorry, Isabelle! I posted the wrong place... -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a VLOOKUP formula =IF(A10,VLOOKUP(A1,brates,2,)," ")
Just curious... Why return a space character rather than zero or an empty string? -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
#7
![]() |
|||
|
|||
![]()
Thank you Isabelle.
The formula you provided worked exactly as I needed it to. Artur |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Combining formulas | Excel Discussion (Misc queries) | |||
combining formulas | Excel Worksheet Functions | |||
combining formulas | Excel Discussion (Misc queries) | |||
Combining Two Formulas to One | Excel Discussion (Misc queries) | |||
combining two formulas | Excel Worksheet Functions |