Results 1 to 8 of 8

Thread: excel problem

  1. #1
    osamaalvi is offline Junior Member
    Last Online
    21st August 2013 @ 11:16 AM
    Join Date
    16 Apr 2010
    Age
    38
    Posts
    8
    Threads
    1
    Credits
    830
    Thanked
    2

    Default excel problem

    hello firends, how are you?

    i am facing a big problem in excel(excel 2007)
    suppose meray 2 column hain
    Column 'A' and Column 'B'
    Column 'A' main merged cells hain
    A1:A2
    A3:A5
    A6:A10
    A11:A15

    ab suppose meray pass column A1:A2 (merged cell) main Value "1" hai
    to main chahta hoon kay column B main B1 say B2 tak value "1" aa jaye
    remember Column "B" completely unmerged hai

    isi tarhan A3:A5 main agar Value "2" hai to column "B" main B3:B5 tak 2 aa jaye

    manually to yeh 10 ghantoon main hoga agar app kay pass 2000 raws hoon
    lekin agar koi formula ho to easily ho jaye ga
    plz help me i m waiting for reply

  2. #2
    Haseeb Alamgir's Avatar
    Haseeb Alamgir is offline Super Moderator
    Last Online
    Yesterday @ 09:41 PM
    Join Date
    09 Apr 2009
    Location
    KARACHI&
    Gender
    Male
    Posts
    19,366
    Threads
    419
    Credits
    39,831
    Thanked
    1813

    Default

    ڈئیر آسانی سے آ تو رہی ہے کوئی مشکل بھی نہیں ہے اے۱ اور اے۲ کو مرج کرکے ولیو لکھو پھربی ۱ میں جا کر= کا نشان پرس کرکے اے۱ اور اے۲ سیل کا ریفرینس دے دو۔ کام ہو گیا

  3. #3
    osamaalvi is offline Junior Member
    Last Online
    21st August 2013 @ 11:16 AM
    Join Date
    16 Apr 2010
    Age
    38
    Posts
    8
    Threads
    1
    Credits
    830
    Thanked
    2

    Default reply

    tum nay ghoor nahi kiya cell uneven hain
    i mean kay Column A main A1:A2 merge hain phir A3:A5 merge hain phir A6:A10 merge hain to agar aik formula lagaya aur neechay copy kia to answer wrong araha hai kuch samjhay

  4. #4
    zulfi721's Avatar
    zulfi721 is offline Senior Member+
    Last Online
    4th May 2017 @ 03:41 PM
    Join Date
    05 Mar 2010
    Location
    On Planet earth
    Posts
    926
    Threads
    103
    Credits
    1,104
    Thanked
    66

    Default

    osama attach your excel sheet,then v can guide you in a better way that what do u want to ask............

  5. #5
    zulfi721's Avatar
    zulfi721 is offline Senior Member+
    Last Online
    4th May 2017 @ 03:41 PM
    Join Date
    05 Mar 2010
    Location
    On Planet earth
    Posts
    926
    Threads
    103
    Credits
    1,104
    Thanked
    66

    Default

    Bro check this excel file hope dat it would solve your problem
    Attached Files Attached Files

  6. #6
    sayhellotoit's Avatar
    sayhellotoit is offline Senior Member
    Last Online
    23rd September 2017 @ 07:51 PM
    Join Date
    01 May 2009
    Posts
    1,003
    Threads
    5
    Credits
    53
    Thanked
    127

    Default

    Copy your Column A (the merged one) into a new workbook and then paste the following code into Visual Basic Editor [in Office 2003, Tools-->Macro-->Visual Basic Editor]


    Option Explicit
    Sub Test()

    Dim r As Excel.Range
    Dim r1 As Excel.Range
    Dim myR As Excel.Range

    For Each r In ActiveSheet.UsedRange
    Debug.Print r.Address, r.Count
    If r.MergeArea.Count > 1 Then
    Set myR = r.MergeArea
    r.UnMerge
    For Each r1 In myR
    r1.Value2 = myR.Value2
    Next r1
    End If
    Next r

    End Sub
    Press Run button in Visual Basic Editor
    As a result, all cells will be un-merged and duplicate values will be copied into blank cells.
    Now simply copy this column and paste it into your original Workbook in column B.
    Last edited by sayhellotoit; 25th May 2010 at 01:57 PM.

  7. #7
    osamaalvi is offline Junior Member
    Last Online
    21st August 2013 @ 11:16 AM
    Join Date
    16 Apr 2010
    Age
    38
    Posts
    8
    Threads
    1
    Credits
    830
    Thanked
    2

    Default Problem Solved

    Shukriya app sub ka "zulfi bhai" aap ka bhi but "sayhellotoit'" kay Macros script nay kaam kerdiya koi formula to na mila per kaam hogaya

    Actually main aik AutoCAD operator hoon aur mujhay survey data extract kerna perta hai to mujhay is ki zarorat parti hai manually kernay main bohut time lagta hai

    Thanks

  8. #8
    osamaalvi is offline Junior Member
    Last Online
    21st August 2013 @ 11:16 AM
    Join Date
    16 Apr 2010
    Age
    38
    Posts
    8
    Threads
    1
    Credits
    830
    Thanked
    2

    Default osama

    Thank You My problem solved

    sayhellotoit bhai kay macros script nay kaam ker diya Zulfi bhai aap ka bhi shukriya actually main aik AutoCad opearator hoon aur mujhay Survey data extract kerna perta hai manually kernay main buhut time chahiye
    However

    ThankYou

Similar Threads

  1. Excel PDF Problem
    By rafiquey in forum Ask an Expert
    Replies: 7
    Last Post: 1st September 2015, 08:49 PM
  2. Solved excel problem plz help
    By nissa in forum Solved Problems (IT)
    Replies: 7
    Last Post: 12th May 2015, 12:54 PM
  3. Excel Problem
    By Qutab in forum Ask an Expert
    Replies: 17
    Last Post: 18th July 2012, 09:01 PM
  4. excel problem
    By Iqbalpk in forum Ask an Expert
    Replies: 2
    Last Post: 26th May 2012, 09:05 AM
  5. Excel problem
    By shahleopak in forum Ask an Expert
    Replies: 12
    Last Post: 23rd July 2009, 02:14 PM

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
  •