Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 31
Default Help with look up formula

I am using the following formula: =IF(M5="x",W49*140%,IF(Q5="x",W49*140%,""))
but I need to change it to solve the following problem,

1. How can I use 4 cells J5, G5, M5, Q5, I need to insert a caracter into
any of this cells (at this moment I am using "x") But I really want to be
able to use any keyboard key for the formula to work.
2. using j5="x", w49*0,""
3. using g5="x", w49*0,""
4. using m5="x", w49*140%
5. using Q5="x", w49*140%
6. But the major task that I want accomplish with this formula is to allow
me to enter only one "x" (meaning I can only select ONE between J5, G5, M5,
Q5)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default Help with look up formula

Hi Frances

One way
=IF( COUNTA(G5,J5,M5,Q5)1,"error",
IF(COUNTA(G5,J5)0,W49*0,
IF(COUNTA(M5,Q5)0,W49*140%,"")))

--
Regards
Roger Govier



"Frances C" wrote in message
...
I am using the following formula:
=IF(M5="x",W49*140%,IF(Q5="x",W49*140%,""))
but I need to change it to solve the following problem,

1. How can I use 4 cells J5, G5, M5, Q5, I need to insert a caracter into
any of this cells (at this moment I am using "x") But I really want to be
able to use any keyboard key for the formula to work.
2. using j5="x", w49*0,""
3. using g5="x", w49*0,""
4. using m5="x", w49*140%
5. using Q5="x", w49*140%
6. But the major task that I want accomplish with this formula is to allow
me to enter only one "x" (meaning I can only select ONE between J5, G5,
M5,
Q5)



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 31
Default Help with look up formula

Thanks Roger, the formula works fine, but the only problem that I have is
that when I choose g5 or j5 I will like the formula not to show 0 (zero) I
will like it to be invisible using ""

Can you help me?

"Roger Govier" wrote:

Hi Frances

One way
=IF( COUNTA(G5,J5,M5,Q5)1,"error",
IF(COUNTA(G5,J5)0,W49*0,
IF(COUNTA(M5,Q5)0,W49*140%,"")))

--
Regards
Roger Govier



"Frances C" wrote in message
...
I am using the following formula:
=IF(M5="x",W49*140%,IF(Q5="x",W49*140%,""))
but I need to change it to solve the following problem,

1. How can I use 4 cells J5, G5, M5, Q5, I need to insert a caracter into
any of this cells (at this moment I am using "x") But I really want to be
able to use any keyboard key for the formula to work.
2. using j5="x", w49*0,""
3. using g5="x", w49*0,""
4. using m5="x", w49*140%
5. using Q5="x", w49*140%
6. But the major task that I want accomplish with this formula is to allow
me to enter only one "x" (meaning I can only select ONE between J5, G5,
M5,
Q5)




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default Help with look up formula

Sorry Frances
I misinterpreted your requirement.

use
=IF( COUNTA(G5,J5,M5,Q5)1,"error",
IF(COUNTA(G5,J5)0,"",
IF(COUNTA(M5,Q5)0,W49*140%,"")))


--
Regards
Roger Govier



"Frances C" wrote in message
...
Thanks Roger, the formula works fine, but the only problem that I have is
that when I choose g5 or j5 I will like the formula not to show 0 (zero) I
will like it to be invisible using ""

Can you help me?

"Roger Govier" wrote:

Hi Frances

One way
=IF( COUNTA(G5,J5,M5,Q5)1,"error",
IF(COUNTA(G5,J5)0,W49*0,
IF(COUNTA(M5,Q5)0,W49*140%,"")))

--
Regards
Roger Govier



"Frances C" wrote in message
...
I am using the following formula:
=IF(M5="x",W49*140%,IF(Q5="x",W49*140%,""))
but I need to change it to solve the following problem,

1. How can I use 4 cells J5, G5, M5, Q5, I need to insert a caracter
into
any of this cells (at this moment I am using "x") But I really want to
be
able to use any keyboard key for the formula to work.
2. using j5="x", w49*0,""
3. using g5="x", w49*0,""
4. using m5="x", w49*140%
5. using Q5="x", w49*140%
6. But the major task that I want accomplish with this formula is to
allow
me to enter only one "x" (meaning I can only select ONE between J5, G5,
M5,
Q5)






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



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