Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Hejde
 
Posts: n/a
Default How to replace a cell if value is alphabetic

I have this chart where I need to combine the contents of 2 cells - A & C -
But if A is alphabetic I need it to combine B & D instead. Any good ideas?

A B C D
WC1 406 20062442 93082813
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default How to replace a cell if value is alphabetic

Hi

Presuming by 'combine' you mean add, you could try something like this:
=IF(ISTEXT(A1),B2+D2,A2+C2)

Hope this helps.
Andy.

"Hejde" wrote in message
...
I have this chart where I need to combine the contents of 2 cells - A & C -
But if A is alphabetic I need it to combine B & D instead. Any good ideas?

A B C D
WC1 406 20062442 93082813



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Hejde
 
Posts: n/a
Default How to replace a cell if value is alphabetic

Hi Andy

No, I mean combine :o) What I have done is this simple formula: =A1&"-"&C1 -
The result becomes WC1-20062442 - But as I wrote in my inicial message, if A
is alphabetic I need it to combine B & D instead. Do you know how to do that?

Thanks :o)

"Andy" skrev:

Hi

Presuming by 'combine' you mean add, you could try something like this:
=IF(ISTEXT(A1),B2+D2,A2+C2)

Hope this helps.
Andy.

"Hejde" wrote in message
...
I have this chart where I need to combine the contents of 2 cells - A & C -
But if A is alphabetic I need it to combine B & D instead. Any good ideas?

A B C D
WC1 406 20062442 93082813




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default How to replace a cell if value is alphabetic

Sorry!
Try this:
=IF(ISTEXT(A1),B2&"-"&D2&"-",A2&"-"&C2&"-")
or
=IF(ISTEXT(A1),CONCATENATE(B2,"-",D2,"-"),CONCATENATE(A2,"-",C2,"-"))

Andy.

"Hejde" wrote in message
...
Hi Andy

No, I mean combine :o) What I have done is this simple formula:
=A1&"-"&C1 -
The result becomes WC1-20062442 - But as I wrote in my inicial message, if
A
is alphabetic I need it to combine B & D instead. Do you know how to do
that?

Thanks :o)

"Andy" skrev:

Hi

Presuming by 'combine' you mean add, you could try something like this:
=IF(ISTEXT(A1),B2+D2,A2+C2)

Hope this helps.
Andy.

"Hejde" wrote in message
...
I have this chart where I need to combine the contents of 2 cells - A &
C -
But if A is alphabetic I need it to combine B & D instead. Any good
ideas?

A B C D
WC1 406 20062442 93082813






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Hejde
 
Posts: n/a
Default How to replace a cell if value is alphabetic

Thanks Andy - That was just the one I needed!

"Andy" skrev:

Sorry!
Try this:
=IF(ISTEXT(A1),B2&"-"&D2&"-",A2&"-"&C2&"-")
or
=IF(ISTEXT(A1),CONCATENATE(B2,"-",D2,"-"),CONCATENATE(A2,"-",C2,"-"))

Andy.

"Hejde" wrote in message
...
Hi Andy

No, I mean combine :o) What I have done is this simple formula:
=A1&"-"&C1 -
The result becomes WC1-20062442 - But as I wrote in my inicial message, if
A
is alphabetic I need it to combine B & D instead. Do you know how to do
that?

Thanks :o)

"Andy" skrev:

Hi

Presuming by 'combine' you mean add, you could try something like this:
=IF(ISTEXT(A1),B2+D2,A2+C2)

Hope this helps.
Andy.

"Hejde" wrote in message
...
I have this chart where I need to combine the contents of 2 cells - A &
C -
But if A is alphabetic I need it to combine B & D instead. Any good
ideas?

A B C D
WC1 406 20062442 93082813








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default How to replace a cell if value is alphabetic

Thanks for the feedback - glad to help!

Andy.

"Hejde" wrote in message
...
Thanks Andy - That was just the one I needed!

"Andy" skrev:

Sorry!
Try this:
=IF(ISTEXT(A1),B2&"-"&D2&"-",A2&"-"&C2&"-")
or
=IF(ISTEXT(A1),CONCATENATE(B2,"-",D2,"-"),CONCATENATE(A2,"-",C2,"-"))

Andy.

"Hejde" wrote in message
...
Hi Andy

No, I mean combine :o) What I have done is this simple formula:
=A1&"-"&C1 -
The result becomes WC1-20062442 - But as I wrote in my inicial message,
if
A
is alphabetic I need it to combine B & D instead. Do you know how to do
that?

Thanks :o)

"Andy" skrev:

Hi

Presuming by 'combine' you mean add, you could try something like
this:
=IF(ISTEXT(A1),B2+D2,A2+C2)

Hope this helps.
Andy.

"Hejde" wrote in message
...
I have this chart where I need to combine the contents of 2 cells - A
&
C -
But if A is alphabetic I need it to combine B & D instead. Any good
ideas?

A B C D
WC1 406 20062442 93082813








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
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
resetting last cell jagdish.eashwar Excel Discussion (Misc queries) 11 March 31st 06 02:06 AM
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 01:36 AM
replace one tag in content of one cell and format not changed replace one tag in content of one cell a Excel Discussion (Misc queries) 1 January 9th 06 03:36 PM
Instead of a negative number, I'd like to show zero... Dr. Darrell Excel Worksheet Functions 6 December 7th 05 08:21 PM


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