Countng Cells Based On The Entry

Oct 6, 2008

i have the following formula which counts various cells containing dates and i need to add in a count for 1 cell, BV21 but it needs to count 3 if theres a date and 0 if the cell is empty or reads NA

=COUNT(AS21:AX21,BH21:BN21,BR21:BU21,BW21:BZ21)+
(COUNT(AY21,BB21,BE21,BO21)>0)
+(COUNT(AZ21,BC21,BF21,BP21)>0)+(COUNT(BA21,BD21,BG21,BQ21)>0)
+IF(CB21>0,CB21,0)+IF(CD21>0,CD21,0)+IF(AP21="Y",2)[/size]

might be simple to some but it really has me stumped.

View 2 Replies


ADVERTISEMENT

Selecting Cells Based On Textbox Entry

Oct 12, 2009

I have a user form with some option buttons (1,5,10,etc...) that are used so the user can select a given number of cells they want selected. My last option button is labled Other(optOther) and has a textbox next to it(txtOther).

What I am trying to do is give the user the option to either select one of the given numbers or be able to enter their own number. The data will then be extracted from one worksheet to another. I have all the coding for the optiong buttons with the given numbers, just cant figure the textbox one out.

My data starts on B5, so what i am trying to do is when the user enters number n, i would need data from B5:B(n+4).

View 2 Replies View Related

Color Cells Based On Entry. More Than 3 Conditions

Nov 21, 2006

I was hoping there was an alternative to having to use so many named ranges for each sublist (there would many sublists in the actual workbook). Anyway, I'm a little uncertain about the code you posted - do the LIST and SUBLIST codes go in Source in Data Validation, or in Source in Dependent Validation Lists Based On Header Values? Can you give me a bit more instruction on this? Also, I'm trying to use the following code to color cells upon a change in value in V1 or V2, but can't get it to work. Can you kindly tell me what's wrong with it?

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address <> "V1" Or "V2" Then Exit Sub
Select Case [V1].Value
Case "A"
Target.Interior.ColorIndex = 40
Case "B"
Target.Interior.ColorIndex = 35
Case "C"
Target.Interior.ColorIndex = 36
Case "D"
Target.Interior.ColorIndex = 34
Case "E"
Target.Interior.ColorIndex = 19
Case "F"
Target.Interior.ColorIndex = 24
End Select
End Sub

View 7 Replies View Related

Lock Cells Based On Entry In Other Column

Mar 30, 2007

I have a spreadsheet where there are two columns for the user to enter data in, but they can only select one column. I want to lock the second cell if data is entered in the first. I can't find a way from validation to do this. Is there another way via VBA (stupid question, I know... VBA does everything but scratch your butt)

View 4 Replies View Related

Automatic Entry Of Dates Based On Month & Year In Cells

May 30, 2007

I want to create a monthly timesheet which contains 9 columns for
(Date, Day, Project no., Activity, Time In, Time Out, Total Hours, OT Hours, Remarks)

I have used IF Function to calculate Total Hours & OT hours automatically. Time IN & Time OUT, Project No., will be entered manually on daily basis.

Weekday function is used in the Day column to return the corresponding day of the date in the Date column.

Name of the Month and Year will be manually entered in the designated cells I3 and I4 respectively.

Now the solution I am looking for is, the dates should be automatically entered in the Date column (in cells A8 to A38) based on the Month & Year entered in cells I3 & I4. Dates of the corresponding month of the year should only be filled in. (If a month is not having 29, 30 or 31st day, the corresponding cells should be left blank. i.e. nothing should be displayed in the corresponding cells). I am looking for some sort of formula to enter in the cells of Date column (A8 to A38) achieve this. I have searched the forum and could not find anything which could at least give me an idea about the kind of function or formula to be used.

Attached here is the time sheet I am trying to create.

View 8 Replies View Related

Getting Entry In One Cell To Cause Entry In Another Based On Entry In 3rd

Mar 20, 2014

I have a percentage in R3.

If I make an entry in D13 then I want the R3 to be duplicated into C27 otherwise C27 should be 0.

View 4 Replies View Related

Conditional Formatting Date Cells Based On Entry In Adjacent Cell

Jul 22, 2008

I have a spreadsheet with 'due date' for returns in column L and 'received date' for returns, in the adjacent column M.

I would like to get the due date to turn red when it is overdue, ie. the date in the cell has arrived and no return was submitted. By trawlling the forum, I managed to accomplish this with the following in conditional formatting:
Cell value is less than or equal to =TODAY()

All's great.....but - I would like the date to turn back to black if I enter a date in the adjacent received column, column M.

In other words, I want to flag a problem if the due date has passed, but once I receive the return and enter the date I receive it, i would like the due date entry to revert back to the original formatting ie. black. So only the outstanding returns are highlighted.

View 14 Replies View Related

Macro To Comment On Cells Based On Formula's (duplicate, Length, No Entry)

Jun 25, 2009

making a macro that will scan for duplicates, length & empty cells.

I have the sample file below that does conditional formatting but it doesnt help as much because I want to show the reason for the highlight's on a comment instead.

sample file : [url]

file that might help out: [url]

checks would be:
column A - duplicates and/or length should not be over 100 characters
column B - duplicates
column F - should only contain 2 comma's(or 3 keywords)
all columns - check if no entries are found(empty cells)

View 9 Replies View Related

Auto Copy Template On Record Entry & Link Set Cells Back New Record Entry Sheet

May 26, 2009

I am looking to create a macro that will create a new sheet when data is added on a summary sheet. Example.

1. Summary sheet called "Variations" contains columns that will contain the information needed for new sheet (Columns A to D)

2. When data is entered on "Variations" sheet: Column B, then macro automatically creates new sheet renamed to e.g. VO1 (Number used on "Variations" tab) and is a copy of "Master" tab.

3. Data entered in Column A to D on "Variations" tab is automatically entered onto new sheet created (e.g VO1). Shown is blue on attached file. Additional data is updated on "VO1" sheet and this then links back to "Variations" tab

View 6 Replies View Related

Countif - Based On Other Cell Entry

Aug 21, 2009

dont know if this can be done using a formula rather than VBA...but is there a formula that would change the countif range based on another cell entry. so the formula below has a column range of 2...so the other cell entry would be '2'.

=COUNTIF(B1:C1,"=Y"). If i then changed the cell entry to '4' the formula would change to. =COUNTIF(B1:E1,"=Y")

View 2 Replies View Related

Entry Based Execution Of Macro

Dec 19, 2008

I have to make eighty to ninety entries daily in Column B. Then transfer these entries to another column N,(by copy/paste) after that a maco "text to column" is executed. Now I have linked Column B to N like =B2, =B3, etc. etc. thus instead of copy/paste, the data when entered in Column B, is automatically going to Column N. I wish that the macro (text to entry) may be executed by each entry made in Column B. Is it possible with a macro?

View 7 Replies View Related

Different SORT Based On Data Entry

Dec 27, 2008

do Different SORT based on data entry.
I have a macro in a workbook that looks like this:

View 2 Replies View Related

Cell Sound Based On Entry

Dec 1, 2006

I will try putting the Code Tags in correct this time, I think I figured out what I have been doing wrong.

This code will allow one cell to make a sound when a condition is met. I am trying to have each cell stand on its own. Example cell A1 would sound a Ding if the number >100 and cell A2 would sound a Tada if the word Cat would be returned ....

View 9 Replies View Related

Automatic Formatting Based On Number Entry

Oct 2, 2008

So the title isn't really totally descriptive but it was all I could come up with. I have a work book that has 30 identical sets of 5 cells for users to enter in information. Some of my users will not need all 30 sets. I'm wondering if there is a way for the user to enter the number of cells they need and have excel then format so they have the desired number, instead of 30. Then have excel change all the instances of this number in formulas so that it matches the new number of cells. I hope I explained this well enough for someone to help.

View 9 Replies View Related

Select Tabs Based On Cell Entry

Dec 17, 2008

i'm trying to basically use VBA, so that when a list of work tab names are entered into a column in say Sheet 1..these tabs are then selected.

View 4 Replies View Related

Fill Value In A Cell Based On User Entry

Mar 26, 2009

I have a dilemma.

1.I want to be able to a have a cell be filled with a certain value when the user enter data in Column C.

2.I know that this can be accomplished by a formula, but my spreadsheet will work my efficiently with a macro.

3.I do not know much about VBA but I believe that I will need a macro for each sheet that fills in the word.

View 6 Replies View Related

Hide Columns Based On A User Entry

Mar 28, 2009

Is there a way of a user can add a number in a cell and this would hide a different amount of columns.

OR :

Ideally I would prefer a drop down with dates and the user could select a forward date and all the columns with dates up to that would appear. This would mean they could look as far our as required and all unwanted data would be hidden.

View 4 Replies View Related

Insert Formula Based On Cell Entry Using Vba

Oct 5, 2009

i'm sure this can be done but i cant get an angle on the method. i want to use VBA to put a formula into cell G3 based on the users entry in cell D3 so, for example the user enters M in cell D3 and the VBA code puts the formula "if D3="M",A3,0"into cell G3

i know i could use a formula in the cell but i want it to work with multiple entries so i figure VBA is the way to go.

View 9 Replies View Related

Execute Code Based On Cell Entry

Oct 28, 2009

I would like to write the code or create a macro that will execute when the value of a range of cells is greater than null. The macro or code that I would like to execute will UNHIDE a group of consecutive rows.

View 14 Replies View Related

Selecting Between Two Worksheets Based On Cell Entry?

Jul 12, 2012

I have a workbook with 3 worksheets which contains a single spreadsheet where the user enters data and 2 worksheets containing all the named ranges and formulas(divided up by product model) used on the data entry worksheet. What I've been trying to accomplish is to choose one worksheet based on which product model I select on the data sheet.

View 1 Replies View Related

Forumla Highlight A Entry Based On Count If

Jan 21, 2010

If I minus H is less that 90 count as 1. But if I minus H is greater than 90 count as one but highlight the row on the speadsheet in yellow.

What I am doing is I have a list of about 3000 entrys and I need to determine if (I minus H is greater or less than 90). I then need to count how many times out of the 3000 entrys each entry is greater or less than 90 and highlight the entrys in yellow that are greater than 90.

It would be ideal to determine the difference between I minus H and then categorize the findings of the 3000 entrys to see how many were say 59 and how many were 47 and how many were 92 etc.
I have never seen a forumla highlight a entry based on count if. I am currently rapidly searching the forums here but to no avail.

View 9 Replies View Related

Force Cell Entry Based On A Condition

Jul 31, 2008

I need to force our salespeople to enter information in a cell based on a condition. This is the condition: If I5=3, then I need to move the user to cell I3 with a message that says "Enter miles to site" -- I don't want them to be able to move from the cell until they enter the information. If I5 does not equal 3, then I don't need anything to occur. I need to apply this code to four separate worksheets in the same workbook. Also, they will be entering a number in cell I3, so is okay to leave I3 formatted for Number or General Number? Note: This question is also posted at the following link, but has not yet been answered by that group: http://database.ittoolbox.com/groups...dition-2270643.

View 2 Replies View Related

Auto Data Entry Based On Dropdown Choices?

Jul 31, 2014

I need to know how i can select an option from a dropdown list and have it drew data from a table and place it in a certain cell based on my choice.

i have attached a sample form.

in the sample form i have two dropdown lists.

Countries and POD

What I need is when i select an option from the POD list the data on the Rate table will appear on the left side in order of course.

Attached File: test1.xlsx‎

View 3 Replies View Related

Prohibit Data Entry Based On Adjacent Cell

Mar 14, 2013

I have the following formula in cell H2:

=AND(EXACT(G2,UPPER(G2)),(LEFT(G2)>="A")*(LEFT(G2)<="Z")*(MID(G2,2,1)>="0")*(MID(G2,2,1)<="9")
*(MID(G2,3,1)>="A")*(MID(G2,3,1)<="Z")*(MID(G2,4,1)>="0")*(MID(G2,4,1)<="9")*(MID(G2,5,1)>="A")
*(MID(G2,5,1)<="Z")*(MID(G2,6,1)>="0")*(MID(G2,6,1)<="9")*(LEN(G2)=6))

I would like to prohibit data entry in G2 if H2 reads "false" and allow data entry in G2 if H2 reads "true" .

View 2 Replies View Related

Auto-fill That Adjusts Based On Date Entry

May 13, 2014

On sheet 1, I have dates in column A, then numbers under LabA through C. On sheet 2, I would like the contents of columns B, C, D to autofill when entered. However, I would like to display only the last entry. For example, Lab A (column B) is currently showing "7" in cell B6, if I enter a number in B7, I would like for sheet 2 to autoupdate cell B3 and display that new entry instead of the "7".

View 1 Replies View Related

Copy Data Based On Cell Entry To Different Spreadsheet

Nov 10, 2008

i am trying to find a way to automatically copy information from a worksheet on my computer([list.xls]-List of accounts) to a worksheet on a shared folder([summary.xls]- accounts that have paid)

example:[list.xls]Sheet1!A:A has account numbers, C:C has account balance and D:D has notes on account.
If D:D is "paid", copy acc# to [\foldersummary.xls]Summary!A1, balance to B1 and notes to D1.

If D:D is "payment pending" do same as above but in row 2 and so on.

View 4 Replies View Related

Highlight Entire Rows In VBA Based On Entry In Column A

May 29, 2012

I am trying to write a procedure to highlight entire rows in VBA based on a entry in column A.

I have the below which works for say 1000 rows but breaksdown when I have 58,000 rows which is the usual amount of data I will have.

Below is the code I have so far. It appears when I debug it breaks on the red line with type mismatch.

Option Explicit
Sub RemoveBH()
Application.ScreenUpdating = False
Dim intcount As Long
For intcount = Cells(1, 1).CurrentRegion.Rows.Count To 1 Step -1

[code].....

View 7 Replies View Related

Formula To Return The Value In A Column Based On Cell Entry In Row

Jun 3, 2006

Trying to write a formula that looks for the first number in the same row, then returns the value in that column in a different row. In the example included, cell A-7 should contain the formula. Within row 7, determine the column where the first number is listed (column D in this case), then return the value listed in row 3 of that column ('C' in this case).

I've tried Lookup, Index, and Match functions, but can't seem to get the right combination.

View 7 Replies View Related

Limit Data Entry Based On List Values

Dec 17, 2007

I need to create a Drop Down Menu that gets it's data from another group of cells. I have done this before but it has been sometime ago and now I can't remember.

View 3 Replies View Related

Automate Data Entry Based On Existing Entries

Aug 8, 2008

Daily Iam Entrying 100`s Of Supplier Data And Material Detail,

I Want Data Should Be Poped Out While Entering In Dataentry Sheet And Data Selction Should Be From Ohther Prefilled Cells. Auto Merged Post Until 24 Hrs Passes;Here Is The File

View 4 Replies View Related







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