Assigning Percentage Based On Predetermined Range?

Jan 30, 2014

Cell A1: can contain any number between 1 and 4 (with two decimal places, i.e. 2.36 or 3.99)
Cell A2: based on what number is in A1, this field should return corresponding percentage (%), based on the following criteria:

1: is 100%
2.99: 1%
3 (including) and less (all the way to 4): 0%

Note: percentages between values 1 and 2.99 are equally spread

So let's say, when:
A1 is 1.00, then A2 should return 100%
A1 is 3.26, then A2 should return 0%
A1: is 1.25, then A2 should return 92% (or whatever percentage is correct based on above described criteria)

View 3 Replies


ADVERTISEMENT

Assigning Label Names Based On A Range Of Cell Values

Feb 20, 2007

I searched and found that to assign a name to a label based on a cell value requires the following

Label1.Caption = Worksheets("Sheet1").Range("A1").Value

which would assign the value in cell A1 as the caption for Label1. I've got a range of values in cells:

C4:N4

and I'd like to assign them as names to labels 1 through 12. How would I do that using VBA?

View 6 Replies View Related

Conditional Formatting Based On Percentage And Insert Cell Based On Percentage

Apr 3, 2013

I have a workbook that I've built for a project. I've attached a sample workbook. What I'm trying to do, for the entire sheet or workbook if possible, is turn any Cell with a percentage of 30% to 49% yellow and any cell with a percentage of 50% or more Red. I would also like to move the ID's of the variable cells, for example Id number 9922, to the cells beside the description of the rows, Affected would be an example, if the information contained in the same row as the ID meets with a set of variables.

For example I only want the ID's moved if they correspond with IDsub 1-25. One more thing, the people who will be using this spreadsheet will be copying data from a website when it is imported it does not insert the values as numbers. I would like to format the cells, in example workbook they would be any of the cells labeled ID IDsub Variable or Number, so that anything put in that cell will automatically be converted to a number.

I should also probably add that the formatting will be done on approximately 80 rows a sheet with 47 sheets.

View 2 Replies View Related

Define Percentage Based On Value Range?

Nov 27, 2013

I need to be able to work out a percentage based on a value range. ie.

Cell D2 to D5 will define the percentages (so I can adjust it and play)

D2 = 18%
D3 = 15%
D4 = 13%
D5 = 10%

I need to work out:

If the value in cell A10 is between 11 and 200 calculate on D2, if between 201 - 500 calculate on D3, if between 501 - 2000 calculate on D4 ect ect

Cells A10 to A100 will have some figures put in them.I then want to calculate the %value used based on weather the figure in one of the A10 to A100 cells falls in a range. The data being put into the cells in column A will vary from report to report.

I'm trying to automate the calculations :

View 6 Replies View Related

Range Formula Based On Percentage?

Jul 24, 2012

I have a set number in col A for example 100. Col B is variable value. And Col C is where I need the formula.

If for example Col B is within 5% of Col A return value of "G" in Col C.

If Col B is within 20% of Col A return value of "A" in Col C.

If Col B is under or over 20% ( example if Col B is 79 or 121 ) of Col A return value of "R" in Col C.

View 4 Replies View Related

Return Result Based On Percentage Being Within A Range

Jan 17, 2008

I'm attempting to do the following:

A1 contains names of projects.

B1 contains variances from budgets, being positive or negative numbers.

C1 will contain results.

I need to know which of the B1 cells contain a number equal to or greater than 20%/-20% and output the names in A1 that match the criteria to C3.

View 8 Replies View Related

Excel 2007 :: Create Bar Chart That Changes Color Based On Percentage Range

Aug 7, 2012

I am trying to create a bar chart that changes color based on a percentage range. Any advice on how to do this? I am using Excel 2007, Windows XP, Sharepoint 2010.

View 1 Replies View Related

Summing Text: Add "checkmarks" Where The Checks Have A Predetermined Value Based On The Column The Check Is Placed

Jul 8, 2009

I want to create a column where the user can input ANY data (number, symbol, letter, etc.) and create a sum. Basically, I want to be able to add "checkmarks" where the checks have a predetermined value based on the column the check is placed.

View 5 Replies View Related

Conditional Formatting - Colouring Percentage Of Multiple Cells Based On Date Range

Mar 12, 2014

I am trying to get a row of cells to highlight a percentage based on a date range

Below is an example of what my spreadsheet will look like, very simple for managers to read and understand but I am stuck on how i can get this to display the right way.

In the example i would need the Jan column to colour for a certain percent for 21 days and continue to feb for 26 days. Im not sure if this makes sense but this is what they are asking for. Colour bars to simple show the percent of days off each month.

Name Start Date End Date Jan Feb Mar

Dale 11/01/14 26/02/14 21 days 26 days

I have attached the spreadsheet for an example : Book1.xlsx‎

View 3 Replies View Related

Return Range Of Numerical Values In Single Column Based On Frequency Percentage

Oct 25, 2005

I have a single column of numerical values that may repeat many times within
the column.

I require a flexible Formula:
Use an Input Cell for the specified and changeable Percentage(s) %.
Column may be filtered – so only take into account Visible Filtered Cells.

The Formula will calculate and Return the numerical range of values that fall
between the specified percentage % (using the Input Cell) e.g.; 70%.

The Formula should Return two numeric values: a Start Value and an End Value
– NOT necessarily the minimum and maximum per se BUT the MIN and MAX of the
values that appear 70% of the time in the column; therefore, taking into
account Repeat / Duplicate values.

The calculated Results: the two numeric values will be returned to separate
cells on a new Sheet.

View 9 Replies View Related

Assigning The Range Of A Cell A Value

May 5, 2008

I have a number of cells which are connected to various formulas. EX. A1 = 7. Well I want a formula in A2 which can look at A1 and if A1 = 5-6, then A2 = 1, if A1 = 7-8, then A2 =2, if A1 = 9-10, then A2 = 3, if A1 = 11-12, then A2 = 4. And so on.

View 11 Replies View Related

Assigning A String As Range

Apr 3, 2008

I have the following string which I want to assign to my rngTAddress (dim as range) variable.

='M:1 - Schedules & Spreadsheets[04 Subcontractor Cumulative Billing Tracker.xls]LCD'!$AZ$79

This string is current stored in the strTargetRange variable.

How do I get rngTAddress to refer to this cell in another workbook by assigning this string as the range?

Ultimately I want to use rngTAddress.offset(-2,0) in a formula.

View 9 Replies View Related

Assigning Destination Range

Jul 10, 2006

I am trying to do is when a certain criteria is met I want to pull some information from the net using a web query, and then pasting it into a variable location. I have this code -

Sub Check_Matches()
Dim XLoop As Integer, XPlay_Row As Integer, Loop_Length As Integer
Dim Match_Ref As String, Team_Addr As String, Match_ID As String, Import_Addr As String
XLoop = 1
XPlay_Row = 5
Loop_Length = Range("j1").Value + 1
Do While XLoop < Loop_Length
Team_Addr = "S" & XPlay_Row 'A variable that stores the reference to the cell containing the team ID.....................

View 7 Replies View Related

Assigning Data Range From 2 Strings Of Text

May 4, 2009

Im new to Macros. Im trying to find a string of text assign that to be the top of the data and then find a different string and assign that to be the bottom of the data. Then run a loop whilst inside that data range. Am i going about it the right way? Attached is a sample data file.

View 4 Replies View Related

Assigning Row Heights To Rows Based On Group Level?

Mar 31, 2014

*I have my document ordered hierarchically with group functions.

*Aesthetically I would like to have the font size get smaller the more levels into grouping they are.

*For aesthetic reasons I have merged cells rendering auto-fit useless as it auto-adjust to the first column's font size even if it has no characters in it

I find myself contemplating manually adjusting all 500 some rows of data.. probably by selecting ranges with ctrl or shift clicking my way through the document, grabbing ranges based on how high their grouping is, and adjusting the whole selected group at once, so they all have a uniform height setting.

Can I do some kind of conditional formating based on group level? like all group level 7 rows have a row height of X.

View 1 Replies View Related

Formula For Assigning Names Based On Term Digits

Dec 13, 2013

I could really use some excel function. Within my office, we work with several hundred files. Each employee is assigned files based on the last two digits of the file number. What I need is a way to identify what file is assigned to which employee based on the term digits of the file.

So for example, I have the following list of files:

1002856101
22781721
1044863815
1008799064
1044779765
1006511115
1007641804
0729939256
5303486020
8364709
0014094759
0019921519
8172717

I'm able to do a formula to get the term digits (meaning the last two numbers), but i'd like to have another column that can put names based on the term digit column. For example, Tom might work 00-04, Sally works 05-09, Greg works 10-15, Lucy works 16-21.. etc

I came across the below IF formula that is exactly what i need, except it only works for two associates and not the multiple that i need.. but it looks to be a good starting point nonetheless.

------------------------------
=IF(C2<50,"Sheryl","Lisa"). You should enclose Sheryl and Lisa with quotation marks as these are string values.

You can also use (if A2 is where the Loan # is):

=IF(Right(A2,2)*1<50,"Sheryl","Lisa")

The formula will acquire the last 2 digits of the loan and check it if it's for Sheryl's or Lisa's.
-----------------------------

View 3 Replies View Related

Predetermined Number To Access A Cell

Aug 17, 2007

I have a listbox to select 1 of 15 items. This selection will allow me to access the proper portion of my data. I want to use this number to concatenate the result * predetermined number to access a cell.

Ex
If result from listbox is
if 1 then I want to access data from cell AA7
if 2 then I want to access data from cell AA99
etc.

I can create the cell I want using the code
="AA"&Y2
but what function do I use to call for the cell?

View 9 Replies View Related

Assigning Bar Charts Different Colors Based On RGB Numbers In Table With VBA Macro

Apr 30, 2014

I have some excel sheets that are formatted like the following:

COMPANY | TOTAL | R | G | B
company1 | 10 | 255 | 000 | 000
company2 | 20 | 000 | 255 | 000
company3 | 30 | 000 | 000 | 255
...
and so on...

My question is that I would like to have a macro that runs on this basic file and creates a bar graph with the data. Then it utilizes the RGB values in the columns to change the specific bar for that row. So setting the r, g, b as variables corresponding to the columns in the sheet. Also there isn't a preset number of rows in the files.

[URL]

View 13 Replies View Related

Create A Function That Adds A Predetermined Amount?

Aug 4, 2014

I need to create a function that adds a predetermined amount (lets say 120) to a cell (lets say A1) every time another cell (lets say B1) reaches a 10 (like 10,20,30,40 etc)

Lets say the B1 is 30, i need A1 to recognize that it needs to show 360 as its value (adding 120 for every 10 of B1)

View 2 Replies View Related

Creating New Worksheet From Predetermined Random Rows?

Mar 23, 2012

I have 800 rows of patient information, I need to sample 70 patients. I used the Random.org randomizer to get my 70 patients. That randomizer only gives me the line numbers such as 1, 8, 23, 45, 70, etc. I then need to go to Excel and just pick out the patients on those lines I was given above. Is there an easy way in Excel to have my spreadsheet of the 800 rows and create a (simple) calculation that will pick out the line numbers that I need all at once, so I do not have to go thru manually and choose the data from row 1, 8, 23, 45 etc to make my new spreadsheet with only my sample patients on it. OR is there a easy way to pick 70 random lines from a spreasheet..

View 1 Replies View Related

Excel 2010 :: Assigning Name To Range Received By ODBC Query

Apr 29, 2014

I have been working on some ODBC queries in Excel 2010.

First, I recorded them using Excel's Record Macro function, to get an idea of what sort of source data I would need. Then, I rewrote them into something a little more intelligible.

Pulling out all the sensitive info, I want to know how to add the .ListObject.DisplayName property back onto the results of the query. I tried doing it intuitively, but it didn't work. It was in there when I recorded the macro, but I can't seem to figure out where to put it back into the re-written code. Other parts of the code depend on the results of the query being a 'named field'.

[Code] .....

Also, where would I find out what all that stuff in Cnnect means? DBA, APA, EXC, FEN, etc are all just assignments, and I might like to change some to make this run a bit quicker, if I knew what they meant.

View 6 Replies View Related

Assigning Excel Range To Variable And Then Paste It In Outlook Message Box

Jul 19, 2012

I am writing a code wherein I want to assign specific excel range to a declared variable and then paste this excel in outlook message ody but I am finding difficulty in assigning that range to variable " brng"

I think code is right and issue is there in excel setting.

Code:
Sub mailer()
'
'
'
Dim Ash As Worksheet
Dim brng As Range
Dim OutApp As Object
Dim OutMail As Object
'Windows("Copy of FF RPL REPORT_JULY").Activate

[Code] .......

View 1 Replies View Related

Method For Aligning Multiple Conditions With A Predetermined Outcome

Dec 8, 2009

See example attached. I am building a form where a user need to provide different criteria to receive a specific hourly rate. Conditions are:-

1. Age
2. A / B / C / D
3. Weekend (W) or Mid Week (M)

There are 4 age groups, 4 categories (A,B etc) and 2 Daily rates, therefore there are 32 different possible rates. I have considered nested if statements but I think this would be a very long formula - is this the only answer?

View 4 Replies View Related

Stop Macros Automatically Running At Predetermined Intervals

May 15, 2007

I am using a macro that automatically updates data obtained through a DDE link at 5 second intervals. My code is based off of the article "Automatically Run Macros at a Set Time or Date" found on the Ozgrid FAQs found here: http://www.ozgrid.com/Excel/run-macro-on-time.htm

However, I have this macro execute when I activate a Form Button, not when the workbook opens. So far, this macro works perfectly, and I have no problems. Although, I'd also like to include a Form button to STOP the macro from automatically running if the user chose to do so. How exactly would I go about making this STOP button?

View 4 Replies View Related

Countif For A Range Of Percentage

Jul 9, 2014

I want to count a range of percentage how many items fall under the % range below:-

from 0% to +- 10% (equal or +-10%)
from +-11% to +-20%
from +- 21% to +-30%
from more than +- 31%

View 2 Replies View Related

Percentage Of 1's To Zeros In Range

May 27, 2008

I ahve compiled a spreadsheet that calculates how many wins an individual has as part of a team. I am entering '1' if they win and '0' if they lose but auto sum obviously doesn't add the 0's up to calculate how many matches have been played in total. I need the total matches played because I have a formula in place to calculate % of matches won.

Is there a formula I can use to add 0's and 1's or YES & No's up to total the amount played?? ( Adding up a vertical column. )Please help. I've spent days trying and I'm getting nowhere fast.

View 9 Replies View Related

Conditional Formatting Based On Percentage

Oct 5, 2013

I need a conditioning format formula. If cell A2 is less than 50% of cell A1, then highlight red.

View 2 Replies View Related

Calculate Number Based On Percentage

Aug 10, 2005

example 1:
This years sales are $3700, a decrease of 11.6%. What would last years
sales be?

example 2:
This years sales are $4500, an increase of 151%. What would last years
sales be?

View 12 Replies View Related

Calculate Percentage Based On The Number

Jul 17, 2008

I am working on a spreadsheet which has lots of data in it. I have a Column i.e. Checked out and on each cell entered an X Mark indicating that a device has been checked out.

Since this Checked Out Column goes all the way down to > 1000 cells. Is there a way for us to make a formula and calculate percentage based on the number of X's that are entered and tell as that out of 1000 cells, the X's are 65% and so the blank cells would have to be checked to complete the list?

View 11 Replies View Related

Fill In Part Of Each Bar Based On Percentage?

Jan 9, 2013

I have a column chart in excel. I would like to fill in part of each bar based on a percentage.

View 1 Replies View Related







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