+ Reply to Thread
Results 1 to 3 of 3

Copying cell contents

  1. #1
    Registered User
    Join Date
    07-23-2020
    Location
    Brighton, England
    MS-Off Ver
    365
    Posts
    2

    Copying cell contents

    Hi All
    I'm new to this forum and thank you in advance for any help. This may be a straightforward question (not to me unfortunately) and I'll try to be concise with the details:
    Hi All
    I'm trying to write a cashbook for accounting which has the following:

    Column A Date
    Column B Class Code (type of expense/income) - this is linked from a separate sheet detailing all the class codes
    Column C Description
    Columns I:AW Expenses by class

    Row 3 Class description
    Row 4 Class code

    The inputter will only input date, class code and amounts. I want the description column to be populated with the Class code description. eg 1.4.19 ho Hotels from N3, so that Column C would read “Hotels”. Rows 3 and 4 are poplulated from “Codes” sheet.
    I am trying to attach a demo version of the cash book which I hope clarifies.
    Thanks for any help.
    Attached Files Attached Files

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Copying cell contents

    Why did not you try VLOOKUP the codes sheet to get the description?

    =VLOOKUP(B6,Codes!$A$5:$B$45,2,0)

    Besides, from column I to W, I have seen you try to use IF($B6="f0"... with "f0" hard coded, you can use 1 formula in I6:
    =IF($B12=I$4,$E12-$H12,0)
    then drag down and accross
    Quang PT

  3. #3
    Registered User
    Join Date
    07-23-2020
    Location
    Brighton, England
    MS-Off Ver
    365
    Posts
    2

    Re: Copying cell contents

    That's great thank you - works apart from the loss of cell formatting - borders are lost. I had erroneously thought that VLOOKUP could only be used on the furthest left column?

+ 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. Copying cell contents
    By avw84 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-19-2015, 10:09 AM
  2. [SOLVED] Copying CONCATENATE cell contents
    By benjuk in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-05-2013, 04:02 AM
  3. Copying cell contents from one WS to another?
    By PJ3187 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-17-2012, 11:56 AM
  4. vba - copying a row based on contents of a cell
    By mattbloke in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-05-2011, 08:55 AM
  5. Copying contents of a cell from another worksheet
    By Barking_Mad in forum Excel General
    Replies: 2
    Last Post: 11-17-2009, 10:26 AM
  6. Copying Contents of a cell using VBA
    By Miraun in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-03-2009, 05:39 PM
  7. If Statement and copying all of cell contents.
    By andrewm in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-28-2005, 11:37 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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1