Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 16
Default Combining VLOOKUP and IF formulas

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 99
Default Combining VLOOKUP and IF formulas

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,182
Default Combining VLOOKUP and IF formulas

=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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 99
Default Combining VLOOKUP and IF formulas

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,182
Default Combining VLOOKUP and IF formulas

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,182
Default Combining VLOOKUP and IF formulas

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   Report Post  
Junior Member
 
Posts: 16
Default

Thank you Isabelle.
The formula you provided worked exactly as I needed it to.

Artur
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
Combining formulas carol Excel Discussion (Misc queries) 8 July 22nd 09 04:01 PM
combining formulas Rene Excel Worksheet Functions 1 November 13th 08 09:32 PM
combining formulas Rene Excel Discussion (Misc queries) 4 November 13th 08 12:13 AM
Combining Two Formulas to One Jerkyboy via OfficeKB.com Excel Discussion (Misc queries) 1 August 17th 06 05:28 AM
combining two formulas edwardpestian Excel Worksheet Functions 1 May 16th 06 02:36 AM


All times are GMT +1. The time now is 01:41 AM.

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"