Vlookup Formula Get "a Cost-country" Value And Data

Feb 4, 2009

Workbook has following sheets:
"equipment List" and "vlookup data"

"equipment list" has following fields where cost is the field that needs the vlookup data value.

model, building, cost

"vlookup data" has following fields in 2 different ranges.
range1
manfacturer, model, cost-usa, cost-canada,cost-england
range2
building, country

requirement is that "cost" field in "equipment list should have the value based on the model and cost with respect to the building value.

i can do simple vlookup to get "a cost-country" value but fail to understand how to ensure the value comes from the correct cost-country column based on the building info.

View 2 Replies


ADVERTISEMENT

Add ‘country Name’ Column To Worksheet From A List Of Country Codes.

Apr 2, 2009

I've got a worksheet with five columns of data. One of the columns contains country codes. I have a list of countries that the codes relate to. I would like a new column in the worksheet that contains the country name. I'm not sure if this is possible, but it seem that most things are with VBA! The countries and their codes are on 'Sheet2' I relalise I might have to do some boring re-ordering of the data on 'Sheet2'

View 2 Replies View Related

Multiplying Cost By Variable Factors, Vlookup Not Working

Nov 13, 2008

I have an Excel 2003 situation I cannot resolve. In one workbook, I have a table of multiplication factors based on a numerical general ledger code. On another sheet, I have a data extract including that code and a cost. In the latter sheet, I need to multiply cost by the appropriate factor based on the GL code - IF Code=X, then cost*factor.

Should be simple, but I have too many codes for a nested IF statement. I also tried a VLOOKUP, but since the codes are numerical, Excel interprets them to be in the thousands, while my factors are 1.xxxxxxx, and since the data being looked up thereby appears smaller than the keys, VLOOKUP will only return #N/A or ?NAME, depending on whether I try to nest it in an IF or not. I also have several thousand records per month to which this needs to be applied, so going manual is not an option.

The calculating is done in column E, the original cost is in column AB, the key (GL code) is in column R, and the GL code range with factors is on the !Factors sheet (column A=Code, B=Description, C=factor).

*I'm running Excel 2003 on WinXP Pro

View 9 Replies View Related

Data Validation Of Country And City

Aug 5, 2014

Data validation using named ranges as countries are listed multiple times and to relate country with cities.

How can i relate country with city in two different columns(named ranges) not in order.

Formula to be used for Data Validation would be useful.

Sample data file is attached.

Its just a sample.data can be for 250 rows.

Book1.xlsx‎

View 2 Replies View Related

Splitting Master Data Per Country Fails

Jan 3, 2014

I have a master data sheet with raw data in 19 columns and a variable amount of rows per week, but usually 50k+

The data contains entries from different Countries, and this I need to split up per country into different sheets.

Naming the different sheets with Country code like US, DK, UK, PL, etc...

Below code does that almost perfectly.

Only thing is that when there is no more data to split up, it creates the last sheet called "SheetXX" and since it can't name the sheet "nothing", I just get an error - Run-time error 1004 Method 'Name' of object'_worksheet' failed with the possibility to END or DEBUG. When going into DEBUG this line is highlighted. (wsNew.Name = c.Value)

I can just hit END and then proceed running my remaining macros, but I would prefer it not giving me an error in the first place. (My end goal is that all my macros (10ea) are run by the click of one button, and that is currently not possible, when this gives me an error).

I have tried the "Application.DisplayAlerts = False" without any luck, and also "On Error resume Next", maybe I have used it incorrectly. Do I have to search for a different way to split the data..??

VB:
Sub Split_data_pr_Country()
Dim ws1 As Worksheet
Dim wsNew As Worksheet
Dim rng As Range
Dim r As Integer
Dim c As Range
Set ws1 = sheets("Template")

[Code] .....

View 9 Replies View Related

Translate Data Of Dialed Numbers Into A Country Or Destination Name

Dec 21, 2008

I have some data for international dialed numbers, I need to translate this into a country or destination name.

for example if the dialled number begins with 001, the is the united states etc..
I have all of the required codes, but they all differ in length.
ie 0033 is spain but 003356 is a spain mobile.

I was thinking that i could use VLOOKUP to find the relevant text to display, but this does not work with the varying lengths of the codes.

View 9 Replies View Related

Extract Information From Closed Workbook Representing Data From A Country

May 22, 2013

I'm having a problem with getting a result from another workbook. The purpose is to extract information from a closed workbook representing data from a country (ie US.xlsm, UK.xlsm) into the open one (summary). I want to count the number of results in a column which are above a certain amount (in this case 100).

So this is my coding for getting this result

=SUMPRODUCT(--(('C:address[US.xlsm]Worksheet name'!$E$2:$E$30000)>100))

Which works no problem for getting the number of results in the E column above 100. my issue is that I want to be able to change the name of the country in a cell, and then get the results automatically from the relevant workbook. I've been using CONCATENATE for these purposes and EVAL (from MOREFUNC)... and I get #REF!

So if I split up the above coding into two cells "=" and "SUMPRODUCT(--(('C:address[US.xlsm]Worksheet name'!$E$2:$E$30000)>100))" (just to keep it simple) and then use CONCATENATE to combine them in a cell. Using EVAL on that cell gives me #REF!

I've tested SUMPRODUCT with EVAL and CONCATENATE on formulae like the one above which do not link to other workbooks, and they seem fine. and SUMPRODUCT and linking to a workbook also works fine in the first example.

So the problem is somehow coming from the combination of SUMPRODUCT, EVAL and accessing an external sheet.

View 4 Replies View Related

ISDN Call Cost Formula

Jul 3, 2008

I have an Excel workbook with 2 worksheets, labelled as "codes" and "data"

The "codes" worksheet contains three columns of data.

Column A shows Country names
Column B shows Country dialling codes
Column C shows Cost per minute to the country ...

View 9 Replies View Related

Data Validation List - Country Names Are Selections But 2 Digit Codes Need To Be Result

May 7, 2014

I've written a procedure that loads a list of country selections in a dropdown (see attached/vb editor/ThisWorkbook).

The problem is the valid values for this column need to be just the two digit country codes, not the country code +dash+country name. The reason the dropdown selections include both the two digit country code and the country name is because most users will not know the two digit codes. Presenting the selections in this fashion will make t much easier for the user to make the proper selection.

So here is what I need: When the user makes a selection from the dropdown list, the resulting value needs to be the two digit country code only. Is there a way to incorporate this formula .... =MID(B2|1|2) ... in the vba procedure which runs after the user makes a selection? Or, is there another way to accomplish this?

Example_COO.xlsm‎

View 10 Replies View Related

Formula To Work Out Cost Including Multiple Discounts

Mar 31, 2014

complicated formula for working out prices including applying discounts.

I'm looking for the correct formula for G6,G8,G10 and G15,G17 and G19

I think I have them correct(?) to include standard days and extended days but I can't make it work to include Half days. The formula gets too complicated for me to follow.

View 2 Replies View Related

Cost Per Row Of Data

Mar 6, 2014

I have an excel table that among other fields it has a [product Charge] field.. what im trying to do is to get a cost per row based on the [Product Charge] field.. so example if I have 10,000 rows and the total for that field is 1,000,000 the cost should be 100 ( [Product Charge] / total rows).... I then want to be able to use it in a pivot table...

View 1 Replies View Related

Formula (retrun The Right Cost For An Item, Depending On The Delivery State)

Oct 27, 2009

I have 3 different costs for an item, 15 different items. The costs very depending on the delivery state. Is it possible to write a formula that will retrun the right cost for an item, depending on the delivery state?

if ap10 = "CA" then look up in range AH2 to AH18
if ap10 = "GA" then look up in range AI2 to AI18
if ap10 = "ME" then look up in range AI2 to AI18
if ap10 = "PR" then look up in range AI2 to AI18
if ap10 = any other state then look up in range AG2 to AG18

cell AP10 being the cell that the state is listed in
Cell U10 being the cell that item is in (a drop down menu)

This is the vlookup formula that will get one price.

=IF(ISNA(VLOOKUP($U10,TABLE!$AF$2:TABLE!$AI$18,2,FALSE)),"",VLOOKUP($U10,TABLE!$AF$2:TABLE!$AI$18,2, FALSE))

View 5 Replies View Related

Add Cost Data Of Data Split Into Several Subcategories

Jul 12, 2012

I have a set of data that has cost associated with it that is broken up into several categories repeatedly. The subcategories are NOT defined to a specific set of subcategories i.e. they can be anything. The subcategories may also be alphanumeric and have spaces/other special characters in them. What I want to do is to be able to pick the cost and slot it in the appropriate category in the main sheet.

The exact number of rows and columns in the data is not fixed so it would be great if this is editable in the VBA code depending on how many rows and columns the final data set has.

An example is attached. In the example I have put all the cost as 1 for simplicity but in the actual document all the costs are different values. Also in the example I did not put any category as alphanumeric or with spaces/special characters but in the actual data there may be.

The logic I can think of is to first identify all unique values in the array, insert them as new rows, then add up the cost values (this is just a suggestion).

Book1.xlsx

View 9 Replies View Related

Formula For Total Cost Based On List Of Hours For Each Employee Times A Table Of Rates

Jun 10, 2014

Looking for a formula for total cost based on a list of hours for each employee and a table of rates for each employee.

Please see attached file : Formula.xlsx‎

View 1 Replies View Related

Iteration Inconsistency: Allow For A Cost Being Added To Loan Amount Where The Cost Is Based On The Total Loan Amount

Mar 15, 2007

In a financial environment we have a calculator which uses iteration to allow for a cost being added to loan amount where the cost is based on the total loan amount. Iteration is set to 100 iterations with max change .001

On one PC the first time the calculator is opened it gives a particular (incorrect) result. If the input cells are cleared and the data re-entered, it gives the correct result. This only happens on one particular PC. Is there some other setting , other than the iteration setting, that would cause this?

View 5 Replies View Related

Excel 2010 :: Importing Data That Has Imbedded Cost Center Subtotals - Move To Column

Jul 29, 2014

I am trying to create a Dashboard in excel (2010) using tables/pivot tables to build it. The data I am bringing into excel has these key fields of data: cost center+cost center description, general ledger account+general ledger account description, and YTD amount.

My problem is the data is from an external source report and the report has subtotals built in at cost center, and the report's format of subtotaling puts the cost center first and then the general ledger accounts below. There is no
formula value in the cell that has the subtotaled amount and the number of general ledger accounts can vary depending on whether there has been general ledger activity.

I want to take this format:
July YTD
Cost Ctr 1050 XYZ$6.00
625110 Supplies$2.00
650150 Postage$2.00
650550 Fees$2.00
Cost Ctr 1052 ZZZ$4.00
670500 Pens$2.00

and have it look like this
Cost CenterCost Center DescrGL AcctGL Acct descYTD Amt
1050 XYZ 625110 Supplies $2.00
1050 XYZ 650150 Postage $2.00
1050 XYZ 650550 Fees $2.00
1052 ZZZ 679200 Pens $2.00

Besides manually doing data moves and assigning a unique sort sequence number to keep the records together, how else can I quickly move my cost centers to a new column and keep the cost center with the gl account and $amount?

View 3 Replies View Related

VLookup Data On Combobox Selection By Formula?

Jun 16, 2014

I require is on combobox selection to bring in the data "type" from collumn ag and put it in collumn "c",i then want to get rest of data from the row but get me started I will try and do the other data,do not know how to do formulas ,started first with userforms and would now like to learn formulas

View 5 Replies View Related

How To Modify Source Data When Using VLookup Formula

Dec 17, 2013

I have 2 sheets, lets say SheetA1 and SheetA2. I am using Vlookup to serial number & getting data from SheetA1 to SheetA2. But I want to modifty the data. If i modify the data in SheetA2 that modification should relect in SheetA1. Is it possible...

View 5 Replies View Related

Vlookup Shows Formula Not Data In Every Cell

Aug 7, 2008

I have created a vlookup and it shows as a formula not as data. I can do 'text to columns' to correct it, but I need to drag this vlookup to lots of different cells, then change it slightly in each one.

Every time I make a change, it reverts to the formula and I have to do 'text to columns' again.

View 9 Replies View Related

Vlookup Formula Not Working With Data On Separate Sheet

Mar 13, 2006

I have a sheet set up with names. I have 2 other sheets with spouses and
children that belong to the first sheet. I want to insert a formula that
will look up the correct spouse (based on a member number) and put in it the
column. Same with the children. I tried the vlookup function, but it did
not return the correct result.

View 14 Replies View Related

Using List Of Data With Wildcards In VLookup Formula As Lookup Value?

Mar 8, 2013

I have a list of rules on how to group account numbers. An example is below. I have a very long list of full account numbers (no wildcards). There are roughly 75 rules on how to group the over 40,000 accounts. I want to use the vlookup to determine what group each full account number (always 11 characters) would belong to? It seems that the vlookup isn't treating the ?'s as wildcards. I can use the full account number rules with the wildcards in the cell in the sumif function though.

So ultimately I would like to have my list of account numbers like 40000000000 and 40000000001 know that they belong in group 1 based on the rule table below.

Full Account Number
Account
Subaccount
Group

[code]....

View 4 Replies View Related

VLOOKUP Formula Works But Not If Type In New Data In Cell?

Aug 23, 2013

I have a spreadsheet with a VLOOKUP formula that I have to send to a customer weekly. They are required to type a code in column E of what they invoice, and it pulls the rate into column G based on a rate table I have. The formula is: VLOOKUP(E2,Rates!A:B,2,0)

When I made the spreadsheet, the formula worked perfect. But when they type their codes in and send it back to me, it's messed up. All of the codes they've typed in do pull the correct rate. However, if I try to go to column E and type a different code on top of what they typed (a code that IS IN the rate table), it will tell me: "The value you entered is not valid. The user has restricted values that can be entered into this cell".

If I create a new tab and mimic the exact formula and columns as I am trying to work with, it works perfectly. But for some reason, once they've typed their data into my spreadsheet, something messes up even though the formula is perfect, dragged down, etc. All columns are formatted as text. And the range in the rate table is correct as well. When I try to mimic the formula in the other tab, if I click a cell in column E, there is a drop down list there showing all the available codes from my rate table to choose from. But on the spreadsheet that is messed up has no drop down list on the cells.

View 1 Replies View Related

Excel VLookup Data / Text And Colour Or Another Formula

Oct 22, 2013

I'm using vlookup to find data, but the data is highlighted in different colours and I need this to appear as well as the data/text. Is there a way to do this? The data is individually highlighted with a specific RGB colour for each one and so far could not think of a way to do this. In the end there will be 81 RGB colours and text answers (just in case there is a limit, but if I had to I could break this down to 14 and less for each cell).

View 1 Replies View Related

Formula To Find Data And Return Other Column Value (similar To VLookup)

Jul 7, 2014

Sheet 1
Sheet 2
UPC
Sku

[Code].....

I would like to find the value from Sheet2 Column1 in sheet1 Column1 and return value from Sheet1 Column2 and Column3 into Sheet2 Column2 and Column3

And if it doesn't find anything just return Not Found

The problem that a Vlookup is not working for me is because I want it to be the exact text from sheet2 column1 but in sheet1 column 1 it should not be exact as it might have some extra text as seen in the illustration above

View 3 Replies View Related

Find Country Name Into String?

May 6, 2014

i am trying to find country name in cell consisting of sting, i applied "=INDEX(K2:X2,MATCH(TRUE,INDEX(ISNUMBER(SEARCH(K2:X2,A2)),0),0))" this formula i am getting desired result but i am not able to apply ctrl+d since all cell reference are iterating.

View 8 Replies View Related

How To Count Country For Each Product

Mar 24, 2014

I have a very big Excel table with many products. A product like a "pen" can have different attributes, then each of it gets an own row. Each row has one entry in the column "country". It indicates in which country the product gets shipped.

I want to count the country, in which the products get shipped.

But I don't want to count two times if a product "pen - blue" and "pen - yellow" both get shipped to the US.

I tried it to achieve this with a pivot table but it counts every row and I haven't found a way that it only counts each country per product once.

I have an simpliefied example attached. The columns "product" and "country" exist already, the column "country count" I hope to get automatically.!

Country
Product
Country count
Attribute

US

Pen
2
Blue

[Code] .......

View 6 Replies View Related

Conditional Average For Each Country

Mar 16, 2007

I have countries in column A and the values in column B.

I want to see the avareges of values for each country.

I have tried a few samples that I have found in the forum but they do not work for me.

View 9 Replies View Related

Country Code Lookup

Feb 23, 2009

We get a very detailed Call Data Records(CDR) for all telephone calls made by our employees. CDR typically contains the called number, duration in seconds and cost. What is missing it the city name and country name for the called number.

For e.g. a typical CDR log would be
Called # duration(secs) Cost
442075000000 40 0.02

From looking at this number, the country code is UK - 44 and the city code is 20 which is London.

I have a spreadsheet that contains Country code and city code for all major cities in the world.

Is it possible to create a lookup function, that would take the 'Called #' from the CDR and lookup the data in the CountryCity code spreadsheet and give me the called City and Contry name.

View 9 Replies View Related

Count Cells Based On Country

Dec 6, 2013

Find attached Sample sheet : Sample Data.xlsx‎

View 2 Replies View Related

Search Country Name With Caller Number?

Mar 23, 2014

I have 2 excel sheets format is below mention. In sheet one i have some number with ISD code and in second sheet i have country name and Code. now i want to match Country name in sheet one but my problem is that there are some code are in 1 digit and some code are in 2,3,4,5 digits. If you see in example 220 is belong to Gambia and 224 belong to Guinea so first i want to match all code who is having 1 digit code second who is having 2 digit than 3 digit, 4 digit respectively.

If I'm using below mention formula it's give me first value from sheet to:

INDEX('Country Code'!C2:C229,MATCH(TRUE,INDEX(ISNUMBER(FIND('Country Code'!$B$2:$B$228,B4)),0),0))

As per Ist number 54911678222709 Formula will check Ist 5491 digit if it is Match than ok else chek 549 if it's match than ok else check 54 and 5.

Sheet One:-
Caller Number
54911678222709
5493426121222
971501364886
9715013648860
2207771650
22430919600
23190000368
23222273217

Sheet two as Country Code:-
Country CodeName
54Argentina
971Emiratos Arabes Unidos
220Gambia
224Guinea
231Liberia
232Sierra Leona

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved