#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 183
Default If function

how do I create a function where if this tab says PSS then you need to
calculate A1 * 70% and if the tab instead says Derma then it should be A1 *
80% if it tab is blank, don't calculate anthing.


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default If function

If by "tab" you mean cell (since the worksheet tabs containing the
worksheet names at the bottom of the window cannot be blank), one way:

=IF(A2="PSS",A1*70%,IF(A2="Derma",A1*80%,""))


In article ,
Caroline wrote:

how do I create a function where if this tab says PSS then you need to
calculate A1 * 70% and if the tab instead says Derma then it should be A1 *
80% if it tab is blank, don't calculate anthing.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 183
Default If function

Hi McGimpsey,

tab is cell.... my bad. :-)
So you are saying that you can add more than one if. Can you do an if and an
average combined in a function? Just trying to see options.

Thanks.
caroline

"JE McGimpsey" wrote:

If by "tab" you mean cell (since the worksheet tabs containing the
worksheet names at the bottom of the window cannot be blank), one way:

=IF(A2="PSS",A1*70%,IF(A2="Derma",A1*80%,""))


In article ,
Caroline wrote:

how do I create a function where if this tab says PSS then you need to
calculate A1 * 70% and if the tab instead says Derma then it should be A1 *
80% if it tab is blank, don't calculate anthing.


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default If function

What does "tab" mean? try

=if(a2="pss",.7,if(a2="derma",.8,1))*a1

--
Don Guillett
SalesAid Software

"Caroline" wrote in message
...
how do I create a function where if this tab says PSS then you need to
calculate A1 * 70% and if the tab instead says Derma then it should be A1
*
80% if it tab is blank, don't calculate anthing.




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default If function

You can't have a blank tab but can return the name of the sheet with
=MID(CELL("Filename",A2),FIND("]",CELL("filename",A2))+1,255)
which you can use to carry out your formula.

"Caroline" wrote:

how do I create a function where if this tab says PSS then you need to
calculate A1 * 70% and if the tab instead says Derma then it should be A1 *
80% if it tab is blank, don't calculate anthing.




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 183
Default If function

I am a bit confused or maybe I confused everyone.
This is what I need. I have cell where I place :
A B C D
example distributor $amount Commission $
1 PSS 100,000 B4 *C1
2 n/a 85,000 C2
3 Avanti 180,000 B5 *C3

RANGE
4 PSS 75%
5 Avanti 90%
6 ASA 75%


"Mike" wrote:

You can't have a blank tab but can return the name of the sheet with
=MID(CELL("Filename",A2),FIND("]",CELL("filename",A2))+1,255)
which you can use to carry out your formula.

"Caroline" wrote:

how do I create a function where if this tab says PSS then you need to
calculate A1 * 70% and if the tab instead says Derma then it should be A1 *
80% if it tab is blank, don't calculate anthing.


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
Need some comments on my Utility_Move class module. jchen Excel Worksheet Functions 0 August 21st 06 07:05 PM
Creating a Custom Excel Function to Calculate Gini Coefficients [email protected] Excel Worksheet Functions 3 February 21st 06 10:15 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


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