#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 24
Default "IF" question

help please

i got below condition

A B
acondDD 102
bcond 10
acondDD 204
bcond 20
acondDD AA
acondDD BB

for any acondition with numbers in column B,
i want it to say "1"
for any bcondition with numbers in column B,
i want it to say "3"
for any acondition with letters in comumn B,
i want it to say "5"

i know it's wrong but i wrote something like
=IF(LEFT(A1,7)="acondDD" & ISNUMBER(-RIGHT(A1,4),"1",LEFT(A1,7)="acondDD" &
RIGHTA(A1,2),"3",(LEFT(A1,5)="bcond" & RIGHT(A1,2),"5"))))

What can i do with this formula or do i need something totally different?
please enlighten me!!!

thanks!!!!!!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 229
Default "IF" question

Try this formula in C-column
C2=IF(AND(A2="aconddd",ISNUMBER(B2)),1,IF(AND(A2=" bcond",ISNUMBER(B2)),3,5))
With regards
Sreedhar
"doyree" wrote:

help please

i got below condition

A B
acondDD 102
bcond 10
acondDD 204
bcond 20
acondDD AA
acondDD BB

for any acondition with numbers in column B,
i want it to say "1"
for any bcondition with numbers in column B,
i want it to say "3"
for any acondition with letters in comumn B,
i want it to say "5"

i know it's wrong but i wrote something like
=IF(LEFT(A1,7)="acondDD" & ISNUMBER(-RIGHT(A1,4),"1",LEFT(A1,7)="acondDD" &
RIGHTA(A1,2),"3",(LEFT(A1,5)="bcond" & RIGHT(A1,2),"5"))))

What can i do with this formula or do i need something totally different?
please enlighten me!!!

thanks!!!!!!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default "IF" question

Try this:
=IF(LEFT(A7,7)="acondDD",IF(ISNUMBER(B7),"1","5"), IF(LEFT(A7,5)="bcond",IF(ISNUMBER(B7),"5","otherwi se")))

"otherwise" stands for case
"for any bcondition with NOT numbers in column B" not stated by you!

Regards,
Stefi


€˛doyree€¯ ezt Ć*rta:

help please

i got below condition

A B
acondDD 102
bcond 10
acondDD 204
bcond 20
acondDD AA
acondDD BB

for any acondition with numbers in column B,
i want it to say "1"
for any bcondition with numbers in column B,
i want it to say "3"
for any acondition with letters in comumn B,
i want it to say "5"

i know it's wrong but i wrote something like
=IF(LEFT(A1,7)="acondDD" & ISNUMBER(-RIGHT(A1,4),"1",LEFT(A1,7)="acondDD" &
RIGHTA(A1,2),"3",(LEFT(A1,5)="bcond" & RIGHT(A1,2),"5"))))

What can i do with this formula or do i need something totally different?
please enlighten me!!!

thanks!!!!!!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 24
Default "IF" question

stefi, thank you so much for your formula.

i have another question regards to below.

say, if those 2 columns were combined into 1,

all conditions and numbers were in 1 column,


=IF(LEFT(A7,7)="acondDD" &
VALUE(RIGHT(ISNUMBER(A7),4),"1",IF(LEFT(A7,7)="aco ndDD" &
RIGHT(ISTEXT(C2),4),5,"otherwise")))

could you tell me how i can revise this formula or
totally rewrite this please?

thank you.
p.s.
above is just "aconDD" no "bcond" of course



"Stefi" wrote:

Try this:
=IF(LEFT(A7,7)="acondDD",IF(ISNUMBER(B7),"1","5"), IF(LEFT(A7,5)="bcond",IF(ISNUMBER(B7),"5","otherwi se")))

"otherwise" stands for case
"for any bcondition with NOT numbers in column B" not stated by you!

Regards,
Stefi


€˛doyree€¯ ezt Ć*rta:

help please

i got below condition

A B
acondDD 102
bcond 10
acondDD 204
bcond 20
acondDD AA
acondDD BB

for any acondition with numbers in column B,
i want it to say "1"
for any bcondition with numbers in column B,
i want it to say "3"
for any acondition with letters in comumn B,
i want it to say "5"

i know it's wrong but i wrote something like
=IF(LEFT(A1,7)="acondDD" & ISNUMBER(-RIGHT(A1,4),"1",LEFT(A1,7)="acondDD" &
RIGHTA(A1,2),"3",(LEFT(A1,5)="bcond" & RIGHT(A1,2),"5"))))

What can i do with this formula or do i need something totally different?
please enlighten me!!!

thanks!!!!!!

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default "IF" question

Maybe you need this:
=IF(LEFT(A2,7)="acondDD",IF(ISNUMBER(VALUE(RIGHT(A 2,4))),"1","5"),"otherwise")
Stefi


€˛doyree€¯ ezt Ć*rta:

stefi, thank you so much for your formula.

i have another question regards to below.

say, if those 2 columns were combined into 1,

all conditions and numbers were in 1 column,


=IF(LEFT(A7,7)="acondDD" &
VALUE(RIGHT(ISNUMBER(A7),4),"1",IF(LEFT(A7,7)="aco ndDD" &
RIGHT(ISTEXT(C2),4),5,"otherwise")))

could you tell me how i can revise this formula or
totally rewrite this please?

thank you.
p.s.
above is just "aconDD" no "bcond" of course



"Stefi" wrote:

Try this:
=IF(LEFT(A7,7)="acondDD",IF(ISNUMBER(B7),"1","5"), IF(LEFT(A7,5)="bcond",IF(ISNUMBER(B7),"5","otherwi se")))

"otherwise" stands for case
"for any bcondition with NOT numbers in column B" not stated by you!

Regards,
Stefi


€˛doyree€¯ ezt Ć*rta:

help please

i got below condition

A B
acondDD 102
bcond 10
acondDD 204
bcond 20
acondDD AA
acondDD BB

for any acondition with numbers in column B,
i want it to say "1"
for any bcondition with numbers in column B,
i want it to say "3"
for any acondition with letters in comumn B,
i want it to say "5"

i know it's wrong but i wrote something like
=IF(LEFT(A1,7)="acondDD" & ISNUMBER(-RIGHT(A1,4),"1",LEFT(A1,7)="acondDD" &
RIGHTA(A1,2),"3",(LEFT(A1,5)="bcond" & RIGHT(A1,2),"5"))))

What can i do with this formula or do i need something totally different?
please enlighten me!!!

thanks!!!!!!

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
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
"Disk is Full" add-on question to "Can't reset last cell" post tod [email protected] Excel Discussion (Misc queries) 0 January 22nd 07 02:32 AM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
Complex if test program possible? If "value" "value", paste "value" in another cell? jseabold Excel Discussion (Misc queries) 1 January 30th 06 10:01 PM


All times are GMT +1. The time now is 11:55 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"