ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   IF Question (https://www.excelbanter.com/excel-worksheet-functions/105596-if-question.html)

Carl

IF Question
 


Can I modify this:

=IF(MID(N3;6;3)="OLA";MID(N3;6;3)&LEFT(N3;3);Y3&MI D(N3;6;1))

to include this:

If AP3="PA-OUT" then ("PA" & LEFT(n3;3))

Thank you in advance.

Bob Phillips

IF Question
 
More info needed. What is the requirement in English?

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"carl" wrote in message
...


Can I modify this:

=IF(MID(N3;6;3)="OLA";MID(N3;6;3)&LEFT(N3;3);Y3&MI D(N3;6;1))

to include this:

If AP3="PA-OUT" then ("PA" & LEFT(n3;3))

Thank you in advance.




Pete_UK

IF Question
 
Here's one way:

IF(AP3="PA-OUT";"PA"&LEFT(n3;3);IF(MID(N3;6;3)="OLA";MID(N3;6 ;3)&LEFT(N3;3);Y3&MID(N3;6;1)))

This will look at AP3 first.

Hope this helps.

Pete

carl wrote:
Can I modify this:

=IF(MID(N3;6;3)="OLA";MID(N3;6;3)&LEFT(N3;3);Y3&MI D(N3;6;1))

to include this:

If AP3="PA-OUT" then ("PA" & LEFT(n3;3))

Thank you in advance.




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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com