+ Reply to Thread
Results 1 to 3 of 3

Combining few columns logically

Hybrid View

  1. #1
    Registered User
    Join Date
    11-07-2008
    Location
    indore
    Posts
    1

    Red face Combining few columns logically

    Hi Friends
    I just want to know that how can we combine 2 or 3 columns logically?

    I ll explain :
    Suppose we have a work sheet of 10 columns & 50 entries.there 3rd column is of some data which is in numbers.I want to check that if in 3rd column in any row the number is starting with 1 then 5th column of that row should be fille up by " xxx " .
    The number in 3rd row can be either single digit or multi digit but should from 1.
    Similarly for numbers starting with 2 I have to put say " yyy".
    This Way we have to proceed.

    Waiting for your swift response . . .

    Thanx
    Regards
    gorav

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    =IF(LEFT(C2)="1","xxx",IF(LEFT(C2)="2","yyy",""))
    Insert into E2 and copy down as needed.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Valued Forum Contributor
    Join Date
    08-26-2008
    Location
    singapore
    Posts
    626
    I think this is what you need


    
    =CHOOSE(LEFT(C1,1),"xxx","yyy","zzz")
    I need your support to add reputations if my solution works.


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1