Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Brian
 
Posts: n/a
Default 4 different if statements, not working

I have tried the *if between statements but that gives me a value error.

=(IF(A21="P1","1p",A21),(A21="p2","2p",A21),(A21=" p3","3p",A21),(A21="p4","4p",A21))

how am I supposed to link these up?

Thanks
Brian
  #2   Report Post  
Don Guillett
 
Posts: n/a
Default

You can nest as shown here with an extra ) for each if
=IF(A21="p1","1p",IF(A21="p2","2p",A21))
or you could use LOOKUP

--
Don Guillett
SalesAid Software

"Brian" wrote in message
...
I have tried the *if between statements but that gives me a value error.


=(IF(A21="P1","1p",A21),(A21="p2","2p",A21),(A21=" p3","3p",A21),(A21="p4","4
p",A21))

how am I supposed to link these up?

Thanks
Brian



  #3   Report Post  
Brian
 
Posts: n/a
Default

Hello and thank you for your response.
I tried to add an extra ) but it is not working. Am I doing something wrong?
I can't use a lookup for this.

=IF(A21="p1","1p",IF(A21="p2","2p",A21,if(a21="p3" ,"3p",if(a21="p4","4p",a21))))

Thanks Brian

"Don Guillett" wrote:

You can nest as shown here with an extra ) for each if
=IF(A21="p1","1p",IF(A21="p2","2p",A21))
or you could use LOOKUP

--
Don Guillett
SalesAid Software

"Brian" wrote in message
...
I have tried the *if between statements but that gives me a value error.


=(IF(A21="P1","1p",A21),(A21="p2","2p",A21),(A21=" p3","3p",A21),(A21="p4","4
p",A21))

how am I supposed to link these up?

Thanks
Brian




  #4   Report Post  
Brian
 
Posts: n/a
Default

Cancel that last post (except for the thank you part)
I got it, I missed the A21 in the mix.

Thanks again
brian

"Brian" wrote:

Hello and thank you for your response.
I tried to add an extra ) but it is not working. Am I doing something wrong?
I can't use a lookup for this.

=IF(A21="p1","1p",IF(A21="p2","2p",A21,if(a21="p3" ,"3p",if(a21="p4","4p",a21))))

Thanks Brian

"Don Guillett" wrote:

You can nest as shown here with an extra ) for each if
=IF(A21="p1","1p",IF(A21="p2","2p",A21))
or you could use LOOKUP

--
Don Guillett
SalesAid Software

"Brian" wrote in message
...
I have tried the *if between statements but that gives me a value error.


=(IF(A21="P1","1p",A21),(A21="p2","2p",A21),(A21=" p3","3p",A21),(A21="p4","4
p",A21))

how am I supposed to link these up?

Thanks
Brian




  #5   Report Post  
tjtjjtjt
 
Posts: n/a
Default



"Brian" wrote:

I have tried the *if between statements but that gives me a value error.

=(IF(A21="P1","1p",A21),(A21="p2","2p",A21),(A21=" p3","3p",A21),(A21="p4","4p",A21))

how am I supposed to link these up?

Thanks
Brian



  #6   Report Post  
tjtjjtjt
 
Posts: n/a
Default

I tried to Cancel that post and apparently hit the wrong button.

tj

"tjtjjtjt" wrote:



"Brian" wrote:

I have tried the *if between statements but that gives me a value error.

=(IF(A21="P1","1p",A21),(A21="p2","2p",A21),(A21=" p3","3p",A21),(A21="p4","4p",A21))

how am I supposed to link these up?

Thanks
Brian

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
Problem Working with Named Ranges montgomerymouse Excel Discussion (Misc queries) 1 January 10th 05 10:45 PM
Macro to find and delete all FALSE statements Woody13 Excel Discussion (Misc queries) 3 December 8th 04 11:16 PM
Unresolved Errors in IF Statements - Errors do not show in results Markthepain Excel Worksheet Functions 2 December 3rd 04 08:49 AM
Date Difference On Working Days iwgunter Excel Worksheet Functions 2 November 8th 04 06:10 PM
If statements Mark Excel Worksheet Functions 3 November 2nd 04 08:39 PM


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