Solved

# How to add a Macro or Function to organize by cell data in Excel

Posted on 2013-12-29
430 Views
I'm attaching a mock example of a report that is given daily.  I'm looking first to see if there's a way to take the information (for this example Cells B, C and D) and input their definition into cells E, F, and G based upon information in Sheet 2.  I'm not sure if there's a Macro than can be coded for this or maybe a function, but the size of the report varies daily and having to manually check each one is time consuming so any help or ideas is appreciated.

Also, on Column A is there a formula to tell it to multiply by .01 so that it shows the correct dollar amounts, normally I just tuck it to the side and paste special but wasn't sure if there's a macro code language for that.
ExampleRecord.xlsx
0
Question by:NYANBCNY32
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 3
• 2

LVL 11

Expert Comment

ID: 39744718
I have added the requested formulas on attached sheet
ExampleRecord.xlsx
0

LVL 40

Expert Comment

ID: 39744720
You can use vlookup. Look at sample. I don't understand your second question. If you should multiply some data by 0.01, may be better to have separate column for this?
ExampleRecord.xlsx
0

LVL 40

Expert Comment

ID: 39744728
@Technodweeb: Add FALSE as last parameter of VLOOKUP, because default is closest match. In this case you will need exact match
0

LVL 11

Expert Comment

ID: 39744731
Yes, thanks... I was just realizing my error. The biggest problem I missed was I have a \$B as the first parameter in the VLOOKUP and I should have left the \$ off when I copied the cells.
0

LVL 11

Accepted Solution

Gregory Miller earned 500 total points
ID: 39744752
OK, I have added a VBA macro to format the Column A value to proper currency style.
ExampleRecord.xlsm
0

Author Closing Comment

ID: 39744979
Thank you for the help, your solution was exactly what I needed.
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
###### Suggested Courses
Course of the Month9 days, 11 hours left to enroll