Find Max Value Of Dynamically Changing List

Jun 20, 2008

my file was too big to attach, so to get it, go to [url] (p: SOCIALCHARM [all caps]). It's the only file underneath the 'documents' section.

This is a complex sheet, so I won't go into everything I'm doing, but really just the part I need help with. Instead of trying to explain it abstractly, I'll use a a concrete example (you'll need to look at the sheet to understand this).

The general idea is that I results from an online ad campaign (ie I ran ad X on site Y in position Z), and - given the results I have - try to optimize which ads I run where. Each in the real data (row 167 and below) represents a 'space' where an add can be run.

First, row 551:
The original recommendation is in Column T, which is Brand "Buddies" (column V). The total # so far for brand "Buddies" (col W) is less than the limit, so Column X = 0, and the updated recommendation (Column Y) is just the original recommendation from Column T.

Now, row 552, (the condition I'm having trouble with)
The original recommendation is in Column T, which is Brand "Pink" (column V). The total # so far for brand "Pink" (col W), however, is now OVER the limit, so Column X = 1. This means that excel now needs to search all of the creatives (in column E), filter out all the ones that don't match the size of the current creative in question (ie that are not of size 300x250 - E551), ALSO filter out any creatives of brands that have already hit their limit (in this example, brand "2-in-1" has already hit it's limit, as you could check by looking at X537), THEN, from the remaining creatives (ie those of size 300x250 and not of brand pink OR of brand 2-in-1), select the creative with the highest value in Column AI).

View 3 Replies


ADVERTISEMENT

Dynamically Changing Csv File Or Macros

May 5, 2007

I am trying to find a way to dynamicly change CSV files .What I want is to add another column to the table with the values that based on the pre programmed parameters. For example if i have A,B,C,D columns and rows 1,2,3,4,5,6,7 I need macros to add values in column E based on the values of column B(for example)
I want to be able to pre-set those algorithms.For example for value 1033 in column B I need macros to insert value 1.25 in column E in the same row,for value 951 in column B I need 0.3 in column E in the same row. Is it doable just in Excel?

View 3 Replies View Related

Changing The Backcolour Of A Dynamically Added Control

Dec 1, 2007

I'm trying to give a visual indication to a user of whether a combobox has been correctly filled out.

Basically I want the back colour to be red if the value is "Not Used" and green if the value is anything else.

Normally this wouldn't be a problem, I'd just use the combobox's change event to trigger a check, and adjust the backcolour appropriately.

However, the combobox is dynamically added to the form (depending on options further up the form) - and the particular combobox may not always be created.

View 9 Replies View Related

Dynamically Filtered List

Apr 28, 2009

I need to apply a dynamic filter to my constantly changing list.

Here's an extract of the fields in Sheet "Materials". I need to filter by an of the Type Levels or by the "Index #" fields. The result would be used in another sheet. The return value should be a filtered list from the "Full Material Name" field.

Material IDIndex #Type Level 1Type Level 2Type Level 3Type Level 4Material NameFull Material NameM0000110010Class 0 - Raw MaterialsSection 0 - Metallic MaterialSheet & PlateGalvanized10gSheet & Plate - Galvanized - 10gM0000210010Class 0 - Raw MaterialsSection 0 - Metallic MaterialSheet & PlateGalvanized12gSheet & Plate - Galvanized - 12g

View 12 Replies View Related

Find The Column Position Dynamically.

Jan 15, 2009

In the following code, you will find a sorting function with a range is hard coded. Instead of hard coded value which is marked with red colour, i need to find that range value dynamically. How to write a code to find that ?

View 2 Replies View Related

Populate Multiple Array Variables With Same Code By Dynamically Changing Array Name

Sep 9, 2012

I am trying to populate many arrays with the same code using something like this. For this test, assume the following data in A1.

1
2
3
4
5

6
7
8
9
10

11
12
13
14
15

16
17
18
19
20

21
22
23
24
25

Code:
Sub populate()
Dim firstArr(5), secondArr(5), thirdArr(5), fourthArr(5), fifthArr(5) As Integer
Dim r, c, num As Integer

[Code]....

The above code does not work of course and falls over. I am unsure whether I should try and concatenate with something like this eg "" & arrName(i) = Cells (r,c) or go down a different route.

View 6 Replies View Related

Dynamically Select List Object Name?

May 13, 2013

I have a workbook with three sheets:

-"DB" database sheet containing multiple tables (20 to be exact, named as "CityA", "CityB", etc.)

-"Threat Data" reference sheet containing a "City_Ref" table with the list of tables names in the "DB City ID" column and the unique city name assigned to each table in the "City" column (the city name is populated in a "City" column of each table in the database sheet).

-a dashboard sheet containing an interactive userform for which to populate the database tables.

In this userform, there are two comboboxes:

-a "CbxCity" combobox which lists all the city names from a "City" column in the "City_Ref" reference table

- a "CbxAsset" combobox which should automatically list all the values in the "Asset" column of the selected city table based on "CbxCity"

My issue lies in filling "CbxAsset" based on the selection in "CbxCity" ; how do I dynamically select a ListObject name based on a selection?

The code I am working with is:

[Code] .....

In the CbxCity_Change() sub, I am not sure how to name the ListObject and my code currently gets an error at r = Me.CbxCity.Value

Which is strange because that is showing the selected city name when I run the cursor over the bug.

View 14 Replies View Related

Dynamically Generating List Of Values

Jul 8, 2013

Let me explain, I am trying to auto generate a list. So I have one cell A1 with value "ABC"In another sheet,

I have a list of products in cells A:1 to A:100 and "ABC" is one of them, but is there 4 times. I have value in B:1 to B: 100

What I need is to create a list of all the values in Colum B that are related to "ABC"

Colum A Colum B
ABC 10
ABC 20
ABC Test
ABC TBD

Based on "ABC", I need a list to generate a list:
10
20
Test
TBD

I try Arrays and VLookup and Match and index but they are all single data return.

View 4 Replies View Related

Filter Dynamically Based On Selection List Value

Jan 15, 2012

I have to filter a data based upon the selection list value.

Ex:

Assume that i have 4 values listed in my SELECTION LIST

INDIA
US
UK
AUS

If i select "US" in selection list ...Filter has to take this dynamically and filter the data..

View 2 Replies View Related

Dynamically Set Combobox List Fill Range

Jan 1, 2010

I have a combobox whose list is filled with different ranges, on different sheets, selectable using option buttons. The code is shown below:

Private Sub OptionButton1_Click()
Dim ray
Dim Last
ray = Sheets("Trades").Range("B2:B500")
If OptionButton1 = True Then
With ComboBox1
.List = ray
.ListIndex = 0
End With
End If
End Sub

View 9 Replies View Related

Convert List To Table And Stay Updated Dynamically?

Aug 21, 2014

I have a list or log that is updated by a number of people on a sharepoint file. The list consists essentially of 2 columns - lets call them Location and Date.

The Locations are populated from a pulldown list but can be repeated a number of times throughout the list. I have the list set up using Table Formatting so the range updates dynamically

Example:
Location Date
Site1 8/1
Site2 8/2
Site3 8/3
Site4 8/5
Site2 8/6
Site2 8/7
Site3 8/8

As this list gets items added to it I want to populate a summary table on another sheet showing the dates each site was visited like this...

____8/1 8/2 8/3 8/4 8/5 8/6 8/7 8/8 8/9
Site1 X
Site2 -----X-------------X---X
Site3 -------X
Site4 --------------X

(Had to add dashes above to get the X's spaced out properly)

I'm competent with lookups and such but I imagine this needs an array formula or some index/match combination which I'm a little weak on.

The solution should also not require any updating as the source list is updated periodically.

View 4 Replies View Related

Find Max Value In A Changing (variable Range)

May 11, 2009

I am trying to find the max value within a range (14 cells) contained in one column ("C" in this case). This range will change corresponding to the current cell. Ex. as the current cell moves down (or increases in number) the range of cells to find the Max in moves down (or increases in number) as well. The Max value will then be used as a variable in a equation but for now just getting it into a cell is fine. This seems like it would be easy but it is driving me absolutely batty!

I currently have the non-working code located in a For loop that contains other calculations as well. I've taken those calculations out since they work fine but cloud the bad part. So far I have tried:

View 3 Replies View Related

Changing Contents Of List Via Validation

May 15, 2009

SOLVED

Attached is my example.

I want to have the data in a Named List display automatically in a certain column, and the data be dependent on the choice in a cell with a List Validation.

Choose "option 1" in the Cell's drop-down, and in the specified area appears all of the data in the "option 1" referenced List.

View 4 Replies View Related

Copy From List With Changing Row Count

May 6, 2014

Any way to copy cells from a list of employees. I have already shortened the list significantly, which is based on the location... from over 700 employees down to a possible 30 rows. Now, I want to be able to copy the exact number of employees to an employees list in my form.

Say the list is from A7 to A36, but one time the location may only have 4 employees and the next time there may be 7 employees or whatever. I tried copying the entire list and pasting the list as values, but it pastes the empty cells as duplicates - conditional formatting is on to show if a name was manually entered twice in the list.

I have a cell showing the number of employees in the location, but I'm not sure of the code to dynamically copy from cell A7:A# based on the employee count. So, I'm always going to start in A7, but the end may change. I thought about using End(xlUp), but it stops at the last formula and I tried searching the internet for the right words, but I have had no luck.

View 1 Replies View Related

List Changing Range Values

Apr 29, 2008

i have 118 cells and they are changing every 10 second so, how to gather the max value from these cells and displaly them in Marquee box or in pop message?

View 3 Replies View Related

How Do You Stop Changing The Date Format During Find And Replace?

Aug 26, 2009

When I remove "Release date:" from "Release date:24 December 2008," excel will automatically change the text to "24-Dec-08." Yes, I did try to format the column to "text" before using find and replace.

This wouldn't be a problem, except that half the dates are in Dutch, so only half the dates are changed, which means that I can't make all date formats in a column uniform.

View 2 Replies View Related

VBA Solver: Find Minimum Value Of Cell By Changing X Cells With Constraints

Mar 18, 2009

I'm trying to use solver to find the minimum value of a cell by changing 5 separate cells. These cells are subject to a set of constraints that are formulae. On top of that I have a large number of these solve's to run (The spreadsheet is creating randomly distributed data to form a Monte Carlo simulation). Therefore I am referencing the formulas using the ActiveCell, Offset() function. For some reason when running this code none of the values are changed. Also I changed the UserFinish to false so I could see what solver was doing at each solve, It stops at the correct cell (one after the final cell) but without me having to confirm it each time.

Here is the ....

View 3 Replies View Related

Create Sub-list From Larger List And Find MIN Value In Another Column?

Feb 6, 2014

I am looking for a formula to search two columns.

1) The first column needs to be search to match a text string.

2) If the text string matchs, I need excel to evaluate the number in the second column and find the MIN value of all numbers associated with the text string.

So:

Joe 50
Jim 12
Joe 10
Rob 25
Jim 8
Rob 99

When searching for "Joe", the function would return 10. When searching for "Jim" the function would return 8. For "Rob", it would return "25".

View 4 Replies View Related

Find All The Records That Appear In My List More Than Five Times Then Make A List

Jul 31, 2008

I have a list of 200,000 e-mail addresses in a excel document in column A. What i am trying todo is find all the duplicate e-mail addresses within the list that appears more than four times.

I have tried this forumla in colunm B so it lists how many times the record appears: =countif($A$2:$A$244270,A2) which works fine and then a number appears next to each record. Then i pressed the sort filter to arrange all the records in number order so all the 5's are at the top of the worksheet but that does'nt always list them in the correct number order.

Basically all i want todo is find all the records that appear in my list more than five times then make a list of just one of those 5 records so i can remove them from my e-mail system.

View 9 Replies View Related

Changing Cell Text Color When Out Of List Scope

Feb 5, 2009

I have a worksheet with 3 particular columns (L,M,N) that have drop down menus. The menu is populated with items that are referenced on a different workbook (different file). Because there are multiple worksheets accessing the referenced list, this is a master. When I change the master, the lists update, but the cell text does not. Example:

If I chose apple from the list, but later in the master I decide I want apple to be banana, while the drop dowm box will now have banana instead of apple, my cell still says apple.

I don't necessarily want apple to change to banana, but I want a visual cue that this is incorrect. I wanted the cell text to change to red if it is not equal to any of the list items on the master file. I want this to be passive, i.e., I want it to change automatically, so I don't have to press a button or some other activation.

View 12 Replies View Related

Changing Selected List Option To Single Character?

Jul 7, 2009

I'm creating an excel spreadsheet that will be sent out to a few users to enter data into. In this spreadsheet, multiple columns contain drop down lists created using the Data Validation tool. The lists are referencing named ranges on a second worksheet.

In these drop down lists are terms that consists of one or two words. What I'm trying to do is when a user goes to select an option from the drop down list, I want the matching one letter code to be entered into the cell instead. For example,
Column AK has drop down list with following options:

Good
Moderate
Poor

When a user selects one of the options, I want one the following respective letter to appear instead......

View 2 Replies View Related

Generating A Repeating List Of Names From An Ever Changing Roster.

May 2, 2006

I have a workbook where Sheet 1 Col A is a list of dates. Sheet 2 Col A is a relatively short list of constantly changing names. I need to put this list of names in a repeating fashion in Sheet 1 Col B. Ideally I would like for Sheet 1 to regenerate Col B each time the roster list is changed.

View 5 Replies View Related

Changing Chart According To 3 Selections Of Validation Data (list)

Nov 28, 2012

I would like to find out how can I create a chart, where it is interacting with the selection of 3 drop down list (created from data validation-list option). It will show up to 12 months of data.

First list would have only Male & Female, 2nd list would have 1st Class, 2nd Upper, 2nd Lower, 3rd Class and Pass Only, 3rd list would have all the months of 3 years.

My data is from J9:U22. These data needs to be changed accordingly, reading from D45:U58.

For the graph, if I select Male, 2nd Upper, and Jun-2012, I want it to show only this selection, where the period will be from Jul-2011 till Jun-2012.

Previously I have done one, with only 1 selection of drop down list, where I used Vlookup. Now involves 3 criterias.

Or is there an easier way to do it?

View 3 Replies View Related

Updating VData List In All Sheets By Changing DynRange

Jul 13, 2006

I have a raw_data sheet with a list that is linked through
Insert> Name>Define. This list is used for Validation Data List drop
down menus in other sheets. I would like to update a
list element in my raw_data sheet and have the corresponding element in
other sheets also update. Is this possible or is there another way to
do this?

View 9 Replies View Related

Random Selection Of Cell Value From List Based On Changing Weighting

Apr 24, 2009

I have a list similar to the below:

#....|Name.... | Weighting %
1Artur Boruc 1
2Igor Tudor 5
3Alessandro Grandoni 3
4Gian Elia Amoretti 3
5Olivier Kapo 12
6Kim Källström 13
7Emiliano Bigica 13
8Julio Baldivieso 12
9Fabrizio Miccoli 13
10Peter Vougt 14
11Massimiliano Esposito 12

What I want to do is randomly select either number 1 to 11 (leftmost column OR the person it represents) but also make the selection based on the percentages in the rightmost column. To illustrate using the above example, Number 11 (Massimiliano Esposito) should have 12 times more chance of being randomly selected than Number 1 (Artur Boruc)...

I have used a formula such as

PHP
=INDEX(A$1:A$11,INT((RAND()*11)+1),1) 

to randomly select a cell but how would I modify this to include cell weightings? Or is there a better formula?

An additional note I have is that the weighting for each person will always be changing, but will always be a percentage.

View 11 Replies View Related

Automatically Copy Items From Changing List Into Sortable Table

Nov 25, 2013

I have a list (formatted as a table) on one sheet that I want users to be able to change. On another sheet there is a table that needs to have every item from the list in the first column. So far I have achieved this by using "=Table2[[#This Row],[Crop List]]" in every cell of the column where I want the list copied. ("Table2" is the list, "Crop List" is the header on the list.) This basically works, but it has some drawbacks:

1) When I try to sort the table, the items referencing the list are stuck in their original positions and no longer match the other columns.

2) I have to have a large number of cells displaying "#VALUE!" at the bottom of my table because they refer to empty cells in the list which might later be filled.

In case my explanation wasn't clear, I've attached a copy of the workbook. Everything I'm talking about is on the first two sheets, "Lists" and "Pricing."

View 6 Replies View Related

How To Find Text In Dropdown List (if More Than 400 List)

Sep 28, 2013

Easy way to find the drop down list , if more than 500 list. at least the very first letter of the text.

View 1 Replies View Related

Find Last Cell In Range, And Changing Another Cell Based On Offset Text

May 4, 2009

If i have a range say E12:O12 and want to find the last cell before blank, lets say it finds m12 as the cell with the value before blank. then with m12 it needs to determine weather row 11 in the same column has Text either "S" or "F" if "S" then m12 = t if "F" then m12 offset(1,-1) = t. And just to make things more difficult i need the range E12:O12 to step 2 as well until it gets to E208:O208 .Noting that row 11 never changes and will always have either an "S" Or an "F"

and also t = time()

View 7 Replies View Related

Changing Value Of Cell By Change Of Value In Another Cell Using Dropdown List

Jun 7, 2013

I have a spreadsheet with numerical data in B1:B11 and textual data in C1:C11. The numerical data is a couple of digits, nothing big, and the textual data is always two letters, in this case AB, AC or AD. I have the options for AB, AC or AD for each of the cells in C1:C11 in a data validation drop down list. What I'm trying to do is make a VBA macro, of some sort, that acts upon when, AB for instance, is changed to AC, and then multiply the adjacent numerical value in the B column by a conversion value:

AB -> AC = 3
AC -> AD = 7
AD -> AB = 4

So for example, if I had cell B2 as 10 and C2 as AB, then changed AB to AC using the drop down menu, the macro would recognise the change, select the adjacent cell, B2, and multiply it by 3 to get 30, and put 30 in B2.

This is what I've got so far, and I'm no VBA expert, so I've probably made mistakes in multiple places. At the moment, the code below is getting stuck on active.celloffset - and I'm really not sure why. I did manage to get it working with specific cells rather than a range, but that only ever worked once and I had to close and re-open excel to get it to work again. Is my code any good, or am I coming at this from the wrong direction?

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Code:
Static ov As Variant
For Each Cell In Range("B1:B10")

[Code].....

View 9 Replies View Related

Changing Cell Color Based On Changing Values

Sep 16, 2009

This may have been answered on here but can not seem to find it. My situation is I have values in A1,A2 & A3 that are like counter reading so the value is always changing. What I am looking to do is change the cell color if one of the values is over 500 from the other two values. Say A1 is 3000, A2 is 3250 and A3 is 3500. I would like the cell for A3 to change color.

View 2 Replies View Related







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