Sort Cell A And Then Cell B Does Not Work
Aug 21, 2014
I am trying to sort column a into order and then column b into order of lowest to highest,if I custom filter a first then b,column b does not go in order ie f21,f22,f23 ect it goes f21,f22,f203,f204,f23 or similar.
View 12 Replies
ADVERTISEMENT
Apr 17, 2014
I need to sort out 4 columns D,B,A,L in ascending order for 5 different worksheets from range A7 to BW.
The sorting start at row 7. I have created a VBA code but got error.
View 9 Replies
View Related
Dec 13, 2012
Essentially i get a Runtime 5 error on the bold bit of code....
I am trying to define a range .... by using thexlUp function find the last row ( which works ) i then pass this variable into the sort code and get the error its probably very simple to fix, all it does i sort columnA but finds the last cell .... instead of the whole column,,,,
Sub Macro7()
'
' Macro7 Macro
'
' Keyboard Shortcut: Ctrl+e
NumberOfRow = Sheets("Sheet1").Range("A3000").End(xlUp).Row
ActiveWorkbook.Worksheets("Sheet1").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("Sheet1").Sort.SortFields.Add Key:=Sheets("Sheet1").Range("A2", Cells(NumberOfRow)), _
SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
[Code] .......
View 2 Replies
View Related
Aug 27, 2013
Using Microsoft Access to pull from a database work orders. Some of those are what we call "dummy" work orders and have a letter in them, real work orders are signified by a 10 digit number. I would like to sort and eliminate the letters to find appropriate data. I am assuming I will need to copy into excel and do some sort of formatting but not sure where to start.
View 1 Replies
View Related
Aug 7, 2014
See the attached workbook.
Please edit the formula in column B so that it only gives a BINGO if the adjacent cell in column G is less than 51.
So cell M16 should not be a BINGO because cell G16 is not less than 51.
Attached Files : Book1.xlsx
View 3 Replies
View Related
Sep 16, 2009
Is there a way to make the find and replace function not stop when a cell is too large? Instead, make it pass over the large cells and move on to the next cells? Is there a function that gives the number of characters in a cell? If so, one could sort by cell size and then work around the cells that are too large?
View 2 Replies
View Related
Oct 10, 2006
i have the following formulas that work perfectly seperatly
=MAX(0,(E28-D28-"0:45")*24-F28)
=IF(C28=$C$70,C28=$C$72),2,0)
but it is imperative that i get them to show there results in the same cell.
neither are used at the same time, only one result is required depending on what is needed.
i did try putting them together as follows but did not work
=MAX(0,(E28-D28-"0:45")*24-F28),IF(C28=$C$70,C28=$C$72),2,0)
View 11 Replies
View Related
Sep 5, 2008
Everytime a cell (say B18) changes value I want the following to happen:
If it changes to "Annual" I want row 20 to ungroup
If it changes to "Quarterly" I want rows 22-25 to ungroup
If it changes to "Monthly" I want rows 27-38 to ungroup
From what I can see on other discussion groups I need to enter a code on the worksheet from view code... but I cant work out the code that I would need to enter.
View 9 Replies
View Related
Oct 16, 2013
I have a database full of part numbers for example 0EV2310A06G01JU:S5065
These can vary to having a vareity of symbols/letters/numbers (I am not sure if this makes a difference!)
writing a macro to run a report to show the top three reoccuring partnumbers.
The spreadsheet is currently 1845 cells big but this data will change on a weekly basis, the layout will however remain the same. The column that the part numbers are in is column A.
Is a macro the right way to be approaching this if the data is going to be changing on a weekly basis?
View 2 Replies
View Related
Sep 25, 2007
I have a VLOOKUP formula that works when searching some cells but not others when both cases should work.
Q: Does VLOOKUP have a certain maximum amount of characters it can search? If a cell contains more than this amount of characters will VLOOKUP not work?
This is what seems to be happening on my spreadsheet. The VLOOKUPS that refer to the cells with more than the average amount of characters seem to fail. The same happens with INDEX.
View 9 Replies
View Related
Jul 27, 2013
I have set up a selection change routine which works if the cell has previously been used or if you make an entry and then change it again. I have tried to delete the empty cells 1st and then save the document, when opening the document it I enter a value in a previosly unused cell the change function does not appear to be called. There is an auto open routine that runs as well, there is more code in use but it fails at the start point.
VB:
Sub Auto_Open()
'
' Auto_Open Macro
'
'
Application.EnableEvents = True
[Code] ......
View 1 Replies
View Related
May 28, 2014
I am trying to add a number to a cell for work breaks. Below is what I am trying to do:
If F3 is < 4 then 0
If F3 is > 4 but < 6 then .25
If F3 is < 6 then .50
View 3 Replies
View Related
Mar 27, 2009
I have a VLOOKUP formula, so when the cell above (C5) has a value, it returns the value from a defined list. Simple so far and it works great when I manually input the value in the cell (C5).
The problem occurs when I change C5 to contain an AVERAGE formula? Any ideas why it will only work when there is a plain old value in there, but not a formula?
This is the VLOOKUP formula I'm using:
View 11 Replies
View Related
May 21, 2014
I created a very simple macro, which actually works.
There is a button on my spreadsheet, so the user can launch the macro using this button.
[ Code] .......
At the moment the user clicks on the button, the part of the macro which is hiding the rows will not take place if the cell activated at the moment of launching the macro is in the range below :
The table on my Excel sheet covers range A5:E49
If the active cell is anywhere in A6:49 or C5:D24 or C25, the hiding part of the macro will not work. Launched from any other cells on the spreadsheet it works fine.
The rest works fine and I am not getting an error.
To solve this I just need to add the line Range("G9").Select and it will work.
But I would like to understand why it does not work from the cells given above. My sheet is not protected and I unlocked the cells just ion case.
View 2 Replies
View Related
Jan 14, 2009
I have a sheet that I want to calculate what time a shift starts based on a cell shading.
Basically Cells C6 and D6 need to be auto calculated based on the cells that are shaded from G6:L6
Look at the Attachment and you will see what I mean.
View 8 Replies
View Related
Aug 10, 2009
I am using this code to select the first empty cell in column A.
View 9 Replies
View Related
Nov 11, 2011
I have a date in A2 7th Nov 2011
Column B is number weeks until next appointment - 4.
Column C is the answer Friday 2nd December if the normal result is a Saturday or Sunday then use Friday.
View 9 Replies
View Related
Jun 26, 2014
I am trying to get autofilter to work based on cell contents.
Code:
ActiveSheet.Range("$C$1:$C$18371").AutoFilter Field:=1, Criteria1:=">=1.5" _
, Operator:=xlAnd, Criteria2:="
View 4 Replies
View Related
Feb 27, 2009
I am trying to get a formula to work where it will search a single cell (on a sheet called "Calls") to see if a particular code is in there, if so return a value using HLOOKUP from a table on a sheet called "Values". The problem I am having is how to use the wild card etc because everything I have tried returns an error...
The code I am trying (Without wild cards, because they all failed) is...
Code: ....
View 10 Replies
View Related
Jun 19, 2009
I've got the following code, which evaluates a sheet for the string "Event held", and then offsets multiple columns before adding several strings.
The second part of the code is what I can't get working correctly. Each cell containing the strings inserted by the offsets are set to change colour based on their contents.
What I want is for them to change colour as soon as the strings are offset, but at the moment, I have to click on each cell before the colour appears....
View 9 Replies
View Related
Aug 26, 2013
I have written code in which cell color changes according to cell value. To change cell value I have used drop down list (Data/Validation/List). Main question/problem is code works well when cell value is changed by typing from keyboard only.
Code doesn't work when cell value is changed using drop down list.
Attached is the test file : Test_26082013.xls
Also refer link [URL] .....
View 1 Replies
View Related
Jan 30, 2014
I have problem with a spreadsheet that I am trying to create.
I have a large sheet of data which is dumped in from another program. This contains our deliveries and orders etc.
Now for planning purposes, I would like to see how much of each item I have on order.
I can use VLOOKUP, but that will only give me the amount for the first order it encounters. But not the 3rd, 4th etc. I could use SUMIF but I need the dates as well. After doing some searching I think I have found a way of doing this: I can get the first easier enough:
=VLOOKUP(D$11,'purchase order'!$A$1:$K$6000,5,FALSE), this gives the first order than the another =VLOOKUP(D11,'purchase order'!$A$1:$K$6000,11,FALSE) for its date.
For the second column to check any other orders I thought I could find the cell referance for the first SEARCH: which is
A108: ="A"&MATCH(D11,'purchase order'!A:A,0).
Is there any way of using this Reference to start a new VLOOKUP. So the Lookup Range starts at this reference?? To make things harder it is on another sheet.
View 6 Replies
View Related
Oct 24, 2012
Excel 07
I inserted a hyperlink into a cell that goes to a web page. It works when the sheet is NOT protected, as soon as I protect the sheet it stops working. How do can I lock the workbook and that cell so nobody can change it but the hyperlink still work?
View 2 Replies
View Related
Oct 16, 2013
I am having difficulty with a Vlookup in Excel 2003. Basically I have converted both fields to Text using the text function =TEXT(A2,"0") and have tried matching the values but just get an #N/A error and I have also converted both back to number format but still get the #N/A error....when I do a "=" operator function it returns a FALSE value but I cannot see why as both cell are just 4 or 5 digit number.
View 3 Replies
View Related
Aug 15, 2009
I built an Excel Macro to pull information from my schedule and compile it within another Worksheet. The Macro below searches for an instance of "Unavailable" and then populates my Data Worksheet with the WeekDays (ie: M-W-F or ALL Week), the Details (ie: Vacation or Training) and the Name of the employee. I struggled with a way to populate my employee name as "unavailable" isn't always offset by the same amount of characters to employee name (as it is with WeekDays and Details). Instead, I collected the row in which "Unavailable" was found.
I used the Vlookup function to populate the number of Absences and it worked swell.
=VLOOKUP(C2,O:P,2,FALSE)
C2 is populated with Weekdays (ie: ALL week or M-W-F)
O contains a list of possible day combinations
P contains the number of days
I hoped to use a similar function to populate my employee names. This didn't work well a 'tall.
=VLOOKUP(A2,L:M,2,FALSE)....................
View 9 Replies
View Related
May 15, 2006
I tried to answer a problem on here by giving this formula: = COUNTIF(A1:B6,"=""")
but it doesn't work on my machine. Nor does =COUNTIF(A1:B6,"<>"""). In either case, the effect is as if all cells in the range are non-blank. But the result of =A1="" is "TRUE". Neither syntax is rejected by Excel; in fact, if you omit one of the quotes, the syntax is corrected to the form shown. So I am curious. Does this work normally, but some setting in my machine is stopping it? Or, if it never works, why is it not giving a syntax error? I am using Excel 2000.
View 7 Replies
View Related
Nov 14, 2009
I am using a macro to e-mail any work sheet with an address in A1. I would also like to attach a file that will be listed in cell E1 of that worksheet. The file is different for each work sheet that is being sent but will be listed in the same cell of each work sheet.
This is the code I am using (i got it from ron de bruin) when I use the .Attachments.Add (C:est1.txt) it works but i can not seem to figure out how to get it to read the file address in the E1 cell. The code i am trying to use is .Attachments.Add = ws.Range("E1").value.
View 3 Replies
View Related
Apr 10, 2014
I am creating a Spreadsheet to work with a game which I am designing. I want to create a combat calculator which will generate formulas based on which class a person chooses to be, and their choice of weapons, armour and other equipment (makes things a lot easier for me to visualize). I have created the first worksheet which will act as the interface where users can input their character configurations and a second worksheet where all of the data is stored, included items and their values.
Assuming that on the interface I have cell A1 which will let the user select their class (Warrior, Archer, Sorcerer).
I also have cells B1 = Helmet, B2 = Body Armour, B3 = Leg Armour, B4 = Feet Armour, B5 = Hand Armour.
I would like cells B1:B5 to create a Data Validation based on the class which is selected in A1.
E.g.
IF A1="Warrior"; B1 = A list of Melee Helmets, B2 = A list of Melee Body Armour... etc
IF A1="Sorcerer"; B3 = A list of Magic Leg Armour...
I have managed to do this with the following formula, but only if the data is stored in the same sheet.
Cell B1
=IF(A1="Warrior", =meleeArmour1, =IF(A1="Archer", =rangeArmour1, =magicArmour1))
Cell B2
=IF(A1="Warrior", =meleeArmour2, =IF(A1="Archer", =rangeArmour2, =magicArmour2))
[NOTE]
=meleeArmour1 represents the range of cells where the Melee Helmets/Head Armour is stored.
=magicArmour2 represents the range of cells where the Magic Body Armour is stored.
The group cell names do not seem to work if they are on a different sheet, nor does it work if I replace the group cell name (=meleeArmour1) with the full formula (=Sheet2!A$1$:A$10$)
View 5 Replies
View Related
May 2, 2014
I am currently using a pop up calendar in Excel 2010 that with CTL+SHIFT+B that a calendar pops up, you select your date, and then the calendar closes. What I now need is to write a code or formula or something that when I click in any cell in column F lets say that the calendar opens automatically in that cell and then still close automatically after the date selection is made.
View 3 Replies
View Related
Jun 19, 2007
I have a column which consists of different dates. Some dates have a letter behind them (12.6.K). When I sort them they don't come in order because of the letter.
View 9 Replies
View Related