+ Reply to Thread
Results 1 to 4 of 4

Multiple Conditions add value to column

  1. #1
    Registered User
    Join Date
    11-28-2012
    Location
    Washington Dc
    MS-Off Ver
    Excel 2007
    Posts
    2

    Multiple Conditions add value to column

    I'm trying to review Column L which is named Description and return a value to Column K named Deptid. I want it to elevate L2 and return to K2 loop until end.

    Sub FormatConsolidatedInvoice()
    '
    ' FormatConsolidatedInvoice Macro

    Delete_Column
    Insert_Column
    Column_Name
    GetAccountCode
    Column_Format
    End Sub


    Sub GetAccountCode()

    Dim Description As String
    Dim Deptid As Long


    If Description = "OpsInvoice Per Site" Or Description = "OpsInvoice" Then
    Deptid = 151515

    ElseIf Description = "OpsEnterprise Per Site" Or Description = "OpsEnterprise" Then
    Deptid = 777777


    End If


    End Sub
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Multiple Conditions add value to column

    Does this help?

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-28-2012
    Location
    Washington Dc
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Multiple Conditions add value to column

    That works great. Thank you.

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Multiple Conditions add value to column

    You're welcome. Glad to help out and thanks for the feedback. Please comply with Forum Rules and mark this thread as SOLVED. See link for guidance.

    http://www.excelforum.com/forum-rule...rum-rules.html

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Search column with multiple conditions
    By ansridhar in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-18-2014, 02:22 AM
  2. sum column using multiple conditions
    By losthero1990 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-27-2013, 11:57 PM
  3. [SOLVED] sumproduct of multiple conditions, with 1 column with selective condition
    By melvyndb in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-25-2012, 04:55 AM
  4. Multiple conditions in one column for sumproduct.
    By einarai in forum Excel General
    Replies: 4
    Last Post: 08-07-2011, 04:01 AM

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