Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Sam Sam is offline
external usenet poster
 
Posts: 699
Default Concatenate: Two cells from Sheet2 into One cell in Sheet1

Hi All,

How can I concatenate two cells from Sheet2 and display in One cell in Sheet1?

Here is the formula I got so far.. But its not working

= IF(+Sheet2!B5=+Sheet2!B2,(Sheet2!B2 & "-" & Sheet2!D2),(Sheet2!B3 & " & "
& Sheet2!B4))

Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Concatenate: Two cells from Sheet2 into One cell in Sheet1

Do you mean

=IF(Sheet2!B5=Sheet2!B2,Sheet2!B2 & "-" & Sheet2!D2,Sheet2!B3 & "-" &
Sheet2!B4)

If this post helps click Yes
---------------
Jacob Skaria


"sam" wrote:

Hi All,

How can I concatenate two cells from Sheet2 and display in One cell in Sheet1?

Here is the formula I got so far.. But its not working

= IF(+Sheet2!B5=+Sheet2!B2,(Sheet2!B2 & "-" & Sheet2!D2),(Sheet2!B3 & " & "
& Sheet2!B4))

Thanks in advance

  #3   Report Post  
Posted to microsoft.public.excel.programming
Sam Sam is offline
external usenet poster
 
Posts: 699
Default Concatenate: Two cells from Sheet2 into One cell in Sheet1

thank you jacob, Is there a way of writing Elseif statement in excel sheet?

There are three conditions possible for this cell.

Eg: If Sheet2!A1 = Sheet2!B1 Then Sheet1!A1 = Sheet2!B1 & Sheet2!C1
ElseIf Sheet2!A1 = Sheet2!B2 Then Sheet1!A1 = Sheet2!B2 & Sheet2!C2
ElseIf Sheet2!A1 = "" Then Sheet1!A1 = ""

Thanks in advance



"Jacob Skaria" wrote:

Do you mean

=IF(Sheet2!B5=Sheet2!B2,Sheet2!B2 & "-" & Sheet2!D2,Sheet2!B3 & "-" &
Sheet2!B4)

If this post helps click Yes
---------------
Jacob Skaria


"sam" wrote:

Hi All,

How can I concatenate two cells from Sheet2 and display in One cell in Sheet1?

Here is the formula I got so far.. But its not working

= IF(+Sheet2!B5=+Sheet2!B2,(Sheet2!B2 & "-" & Sheet2!D2),(Sheet2!B3 & " & "
& Sheet2!B4))

Thanks in advance

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Concatenate: Two cells from Sheet2 into One cell in Sheet1

No ELSE statement..But you have TRUR/FALSE .So your formula equates to

=IF(Sheet2!A1 = "","",IF(Sheet2!A1=Sheet2!B1,Sheet2!B1 &
Sheet2!C1,IF(Sheet2!A1=Sheet2!B2,Sheet2!B2 & Sheet2!C2,"")))

If this post helps click Yes
---------------
Jacob Skaria


"Sam" wrote:

thank you jacob, Is there a way of writing Elseif statement in excel sheet?

There are three conditions possible for this cell.

Eg: If Sheet2!A1 = Sheet2!B1 Then Sheet1!A1 = Sheet2!B1 & Sheet2!C1
ElseIf Sheet2!A1 = Sheet2!B2 Then Sheet1!A1 = Sheet2!B2 & Sheet2!C2
ElseIf Sheet2!A1 = "" Then Sheet1!A1 = ""

Thanks in advance



"Jacob Skaria" wrote:

Do you mean

=IF(Sheet2!B5=Sheet2!B2,Sheet2!B2 & "-" & Sheet2!D2,Sheet2!B3 & "-" &
Sheet2!B4)

If this post helps click Yes
---------------
Jacob Skaria


"sam" wrote:

Hi All,

How can I concatenate two cells from Sheet2 and display in One cell in Sheet1?

Here is the formula I got so far.. But its not working

= IF(+Sheet2!B5=+Sheet2!B2,(Sheet2!B2 & "-" & Sheet2!D2),(Sheet2!B3 & " & "
& Sheet2!B4))

Thanks in advance

  #5   Report Post  
Posted to microsoft.public.excel.programming
Sam Sam is offline
external usenet poster
 
Posts: 699
Default Concatenate: Two cells from Sheet2 into One cell in Sheet1

That worked out great! Thank you once again

"Jacob Skaria" wrote:

No ELSE statement..But you have TRUR/FALSE .So your formula equates to

=IF(Sheet2!A1 = "","",IF(Sheet2!A1=Sheet2!B1,Sheet2!B1 &
Sheet2!C1,IF(Sheet2!A1=Sheet2!B2,Sheet2!B2 & Sheet2!C2,"")))

If this post helps click Yes
---------------
Jacob Skaria


"Sam" wrote:

thank you jacob, Is there a way of writing Elseif statement in excel sheet?

There are three conditions possible for this cell.

Eg: If Sheet2!A1 = Sheet2!B1 Then Sheet1!A1 = Sheet2!B1 & Sheet2!C1
ElseIf Sheet2!A1 = Sheet2!B2 Then Sheet1!A1 = Sheet2!B2 & Sheet2!C2
ElseIf Sheet2!A1 = "" Then Sheet1!A1 = ""

Thanks in advance



"Jacob Skaria" wrote:

Do you mean

=IF(Sheet2!B5=Sheet2!B2,Sheet2!B2 & "-" & Sheet2!D2,Sheet2!B3 & "-" &
Sheet2!B4)

If this post helps click Yes
---------------
Jacob Skaria


"sam" wrote:

Hi All,

How can I concatenate two cells from Sheet2 and display in One cell in Sheet1?

Here is the formula I got so far.. But its not working

= IF(+Sheet2!B5=+Sheet2!B2,(Sheet2!B2 & "-" & Sheet2!D2),(Sheet2!B3 & " & "
& Sheet2!B4))

Thanks in advance



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
Copy changing group of cells from Sheet1 to Sheet2 Brad Excel Programming 3 July 23rd 09 01:09 PM
Populate growing range of cells from Sheet1 to Sheet2 Brad New Users to Excel 10 July 23rd 09 08:32 AM
copy data from sheet2 to sheet1 when sheet2 has variable # of rows Anne Excel Discussion (Misc queries) 6 February 27th 09 09:48 PM
A1 Sheet2 is linked to A1 sheet1 so that user enters value(abc123) a1 sheet1 and A1 sheet2 is updated pano[_3_] Excel Programming 2 October 28th 07 02:32 PM
Copying Cells from Sheet2 to sheet1 Gary[_15_] Excel Programming 1 April 16th 04 09:10 AM


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