Figure Out The Row To Insert

May 27, 2007

I have a command button (code listed below) which is 1/2 working. I have a column of PID's (numbers) sorted in ascending order which includes multiple rows with the same PID. When the command is executed, I want to insert a new row after the last matched PID (this part of the code works fine),

or

Insert a new row for the non-existent PID but in the correct sorted location (this is what I can not seem to figure out how to get to work).

My data looks like this in the PID column.

PID (my header row in A1)
158
158
159
161
163
163
163
164

I can successfully insert another line 158, or 159, but can not determine where to insert a line for PID 160 (which is not in the list yet)..................

View 3 Replies


ADVERTISEMENT

Highlight Cell And It Takes The Figure Within In Away From Another Figure?

Feb 18, 2013

I've got a spreadsheet with several rows and the numbers within those rows are totalled up at the bottom. Is there a way where i can highlight the cell within the spreadsheet and it takes it off the accumulative total at the bottom? or something similar to this effect? I just don't want to have to remove figures from this spreadsheet and highlighting will be a good way of seeing what has been done

View 1 Replies View Related

Combine Text & Figure When The Figure Is In -ve?

Oct 14, 2009

I learnt that " " & can combine the text and figure. However, when it comes to a negative numbers, i dont know how to maneouver it. Eg, Cell A1 is USD(50,000.00) and the comment in Cell B1 is Cost is USD(50,000.00). So the function in B1 = "Cost is "& what to put here?

View 3 Replies View Related

Figure Age

Oct 19, 2007

I have tried searching for it but I must not be entering the correct criteria.

how to figure a person's age if all I have is that person's birthdate?

View 9 Replies View Related

Figure Out The Combinations Available

Apr 27, 2007

i'm doing a process and in column N, i would need to have the following combinations:

A1
A2
C1
C2
H1
I1

so basically, a formula that would figure out the combinations available!
can this be done using a formula?

******** ******************** ************************************************************************>Microsoft Excel - Cost Calculator---V5---Try.xls___Running: 11.0 : OS = Windows XP (F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)boutK39=
KLMN39A12 40B 41C12 42D 43E 44F 45G 46H11 47I11 48J Cost Calculator
[HtmlMaker 2.42] To see the formula in the cells just click on the cells hyperlink or click the Name box
PLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.

View 9 Replies View Related

Figure Out How To Add More Columns

Jul 20, 2007

I have this great code, but I can;t figure out how to add more columns to it.

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Target.Column = 2 Then
If Target.Value = "Q" Then
With Target
.Value = ""
End With

Else
With Target
With Selection.Font
.Name = "Wingdings 2"
.Size = 22
End With
.Value = "Q"
End With
End If
Cancel = True
End If
End Sub

View 9 Replies View Related

Figure Out The Range

Aug 4, 2007

I have the following which does what it says it does.

What I can't figure out is, If the used range Starting in row A5 is greater then or less then A50 not to apply the borders.

.Range("A5:M50").BorderAround Weight:=xlHairline
.Range("A5:M50").Borders(xlInsideVertical).Weight = xlHairline
.Range("A5:M50").Borders(xlInsideHorizontal).Weight = xlHairline

View 9 Replies View Related

Figure Out How To Do An If For The Over 30,60,90 Past Due

Apr 28, 2009

Here is what my table is im working with. The tite "todays date starts in Cell A1 and B1 is =Today().

I need to figure out how to do an if for the over 30,60,90 past due. Here the logic I need to figure out:

in the Over 30 column, the logic of the statement is as follows: If the difference between today's date and the date of the invoice is greater than 30 and equal to or less than 60, the amount goes into this column.(over 30 E3) To get the amount(the ammount in C3) into the Current column, the difference between the two dates must be less than 30. To get into the over 90 column, the difference between the two dates must be greater than 90. You can figure out the over sixty column. And this needs to be copied to the remaining colums

Today’s date: =TODAY() Shop Invoice Date Invoice Amount Current Over 30 Over 60 Over 90 Ludwig's Landromat =TODAY()-72 $432.78 Willie's Washing =TODAY()-107 $565.11 Wash It Here =TODAY()-80 $308.47 Spiffy Wash and Dry =TODAY()-58 $725.37 Water Soap & Hot Air =TODAY()-30 $427.95 Wash it & Dry it =TODAY()-90 $603.91 Acme Wash & Dry =TODAY()-60 $332.35 Totals

View 9 Replies View Related

Using MATCH To Find A Figure?

Feb 7, 2014

I have been building a tracker to track benefit payments for child benefits and DLA so I know where I stand and what has been paid.

The problem... its limited and basic an I have to do most things manually, even when I have cell formulas to do some of the legwork.

I stumbled across the term MATCH and SEARCH and I was curious on how to use them for my needs, I was trying to use the LOOKUP set of tools.

My problem...

Benefit rates are set between two date periods, all payment periods are 28 days apart (...but could change to every 7 days) which means that sometimes payments are due 3 weeks of one rate, 1 week of another, the reverse of that or 50:50 depending on the cycle.

A
B
C

[Code]....

The problem should be very evident and especially when I adjust the dates to match what payment dates I finally end up with.

The result of the look up needs to be calculated at the frequency in A14 to B14, A15 to B15 (for example) at the appropriate rate found in D:D when searched for based on the dates in A14 to B14 ... ... etc.

I tried using MATCH to get a match to a date falling between 30/12/2013 and 4/4/2014, I tried this...

=SEARCH(A15,MATCH(B15,A4:F8,1),A15)

which returned #N/A

View 6 Replies View Related

Nesting IF/AND/Or Statements: Figure Out

Mar 22, 2009

I have two cells that each contain their own lists (listA=A1, listB=B1). I'm trying to figure out how to say:

If the selection from (listA= X AND listB=W )or the selection from listB=Y output 0, otherwise output data from C1.

View 2 Replies View Related

Figure Out How Much Halloween Candy Everyone Got.

Oct 24, 2009

Susie:
tootsie-pop 3
oreo box 2
suckers 5

Bob:
tootsie-pop 2
suckers 1
nerds 4

I need to put together a list that shows (in total) how much candy everyone got. Sure, I could concatenate Susie & Bob's (and everone elses) lists, sort, duplicate, put a sum field into the duplicate list and delete repeat names, like...

nerds 4
oreo box 2
suckers 5
suckers 1
tootsie-pop 3
tootsie-pop 2

duplicate, then the second looks like:

nerds 4
oreo box 2
suckers =sum(!Sheet1,B3:B4) [or whatever the proper format looks like)
tootsie-pop =sum(!Sheet1,B5:B6). But what if I have 15,000+ types of "candy"? It would be painful and tedious to put in all those sum fields.

View 3 Replies View Related

Vlookup Figure Out The Values

Dec 6, 2009

This is almost embarrassing, but I have a simple VLOOKUP function that I can't seem to figure out. On Sheet2 cell A11 is the value I want to look up in Sheet1. Sheet2 B12 is the cell I am entering the VLOOKUP function. The value I want entered is in column 7 of Sheet1. I hope I have explained this enough. My formula entered is =VLOOKUP(A11,Sheet1!$A$9:$A$42,7,FALSE).

For whatever reason this is not working, and I am getting a #REF! error.

View 3 Replies View Related

Spreadsheet To Use The Figure 365 In Cell

May 25, 2008

If the user selects, annual bill on the calculation type box:

1. Then I need the spreadsheet to use the figure 365 in cell G14.
2. I also need it to times the figure put into G15 by four.
3. It also needs to divide the readings in cells D9,D10,D11 by how many days in cell D7 and them times by 365 and put the answer in E9.

If the user selects bill to date on the calculation type box:

1. I need to copy the figure in D7 to G14.
2. The number in G15 needs to be divded by 90 and times by how many days in cell D7.

View 10 Replies View Related

Highlight Cells That Are Above A Given Figure

Sep 1, 2009

I am still new to VBA. I am trying to use VBA to search given rows for percentages above 0.81%. When it finds cells with percentages 0.81 and above it will high light the cell with red.

Here is what I have done so far ...

View 12 Replies View Related

How To Figure Out This Nested IF Statement

Mar 7, 2009

I work on a sea going vessel and manage an Emergency Response document. My dilemma is automatically assigning a Muster location based upon data entered in a certain column. I'm having a problem figuring out this Nested IF Statement: Column J will either be blank (no entry), "Fire" or "HRC".

If Column J is blank, column A needs to read "STBD". If column J has either "Fire" or "HRC" column A should read "PORT". See attached Excel file for an example with only 3 or 4 rows.

View 2 Replies View Related

Convert Words To A Figure

Jul 1, 2008

In cell A1:A10 I have various words.

I am trying to convert them to a number assuming every letter = a number in sequence of the alphabet then is summed together. ie:

a=1, b=2, c=3, d=4 ............. z=26.

So the word Excel would equal 5+24+3+5+12 giving me the answer 49.

View 9 Replies View Related

To Figure Date Of Birth

Aug 25, 2008

I have the date of death and the age at death in Years, Month, Days. What formula would I use to figure the date of birth?

View 9 Replies View Related

Formula For Total Figure Each Day

Dec 3, 2009

I need a single formula that will give me a total figure each day.

I am trying to get a total weight for each days sales

Sheet 1 holds the unique ID and total items sold for each day
Sheet 2 holds the unique ID and the weight of each item.

I have got as far as creating helper cells but this is making the whole sheet way too big. I know there is a more efficient way .....

View 9 Replies View Related

Unable To Figure Out Sumproduct

Feb 18, 2010

I've been unable to figure this out for the past few hours so I figure I better turn to.

I need to sum all "orders.price" on sheet 1 when,

1. SaleDate is within the two reference dates(basically monthly)

2. location field in sheet 1 contains the particular string of text

Using the filter function, I've narrowed down that the results of these are not correct at all.

The actual sales are consistent through the months, so each month should have a number in it, yet the worksheet results in almost all of the fields equaling zero.

View 9 Replies View Related

Sum Figure In Conditional Product And Year

May 27, 2014

What's the functions can figure out on the below conditions, For example :

PRODUCTSYEARQTY
AAA 2015 2
ABB 2011 3
AAA 2013 8
BBA 2011 6
AAA 2011 4
BCC 2014 1

Conditions:
1) looking for AAA product
2) sum the qty is before 2014

The answer is :12

View 5 Replies View Related

Text-to-column, Any Figure As Separator.

Oct 17, 2008

I have a column with a number of strings looking like below examples

View 3 Replies View Related

Figure Out How To Sum The Products Purchased In A Given Week

Aug 4, 2009

I have a table that has 3 columns:
Product name (one of 15 products I have)
Purchase Date (converted to excel datevalue).
Week number (a number between 1 and 52)

I'm trying to figure out how to sum the products purchased in a given week.

View 6 Replies View Related

Amount In Figure To Change In Words

Feb 25, 2014

the formula or Vba code to change the amount in figure to words.

View 1 Replies View Related

Figure Out Series Of Cells At The Top Of A Spreadsheet

Oct 1, 2007

I'm trying to figure out a way to have a series of cells at the top of a spreadsheet that when a button is clicked, the data is sent to the bottom (or next available) open cells at the bottom of a table list. So essentially, a form that sends data to the bottom of a table or list.

View 14 Replies View Related

Margin Forumla :: How Do I Figure Out The Cost?

May 27, 2008

I have the margin and I have the sale price. How do I figure out the cost?

View 12 Replies View Related

How To Get Userform To Display Figure As Currency

Dec 30, 2012

I am planning to use a userform to input various figures, and come up with a total.

How do I get the user form to display a figure as currency?

Also, how do I get the user form to display a figure as a date?

View 3 Replies View Related

Drawing Figure According To Data Feed

Jan 4, 2013

Is there any method in excel that can pay the way for drawing figures according to data feeded.

for Ex.

Say

Radius of circle=x

Now this x can be used for drawing the circle and the radius can be entered by user.

View 2 Replies View Related

Pulling Out 2nd Smallest Figure In Database?

Mar 23, 2013

I have a large database of names and numbers.

Row A is the names (column is named StarNames)
Row B is the numbers (column is named StarNumbers)

I would like to retrieve information where it returns the second lowest value where James is the name.

View 2 Replies View Related

Round Up Cell Value To Next Complete Figure In VBA After 0.5

Apr 6, 2014

I am trying hard to use excel macro to round up cell value to next complete figure when it reaches to 0.6, however it should show the first five "0.1, 0.2, 0.3, 0.4, 0.5 exactly. I am giving increment of 0.1 digit to A1 Cell, it is going well. I am unable to get the next complete figure when 0.6 comes. Is it possible in macro.

View 3 Replies View Related

How To Convert Negative Figure To Positive

Jun 27, 2014

I wish to convert a negative figure Ie (-1,500) to positive. How do i go about it?

View 2 Replies View Related







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