Lock cell range when certain cell reach zero [closed] - excel

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 months ago.
Improve this question
I need to figure out a way to prevent people from adding values if a certain cell reaches zero.
I have thousands of t-shirts to distribute among several locations, and I want people to type in the amount they need, however, I only have a certain number of t-shirts produced, so the idea is to prevent people from ordering them if the stock level reaches zero.
e.g I have 40 Large tees in cell C3 in cells C4:C9 I allow people from the offices to type in their desired quantity, as it is a first come first served basis if someone from one location orders all of them I want to get other cells blocked/locked and maybe greyed out.
is this doable in Excel, or Google Spreadsheet?
thanks!

You can use data validation.
Select the range C4:C9. On the ribbon, select Data > Data Validation.
Select "Custom" and enter the formula =SUM($C$4:$C$9)<=$C$3.
Optionally, open the "Error Alert" tab and provide a custom message to be shown to users when they try to exceed the value in C3.

Related

How to number unique customer ID's sequentially in Excel? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Please see the picture below. I would like to enter a formula to automatically enter the transaction number which is sequential and 1/3/2008 is the first transaction. As you can see, each client may order 1-10 items in each transaction (M. Deveraux has 4 items) but as long as its a purchase by the same customer on the same day, its the same transaction. Everything is ordered by date and the clients that order more than 1 item per transaction are always sequentially ordered. Please let me know!
Assuming the top-left cell in the image above is cell A1 ...
Leave the first transaction number as 1 in cell B2.
Enter the following formula in cell B3: =IF(AND(D3=D2,E3=E2),B2,B2+1).
Copy that formula down through the rest of your sheet.
(If this answer works for you, mark it as correct; I notice in your profile that you've never done so previously.)

LOOKUP and MATCH query [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Basically I have a table which lists products A-H in column A and then in the next ten columns are features of each product. So each product is listed and then I tick a box to say whether or not it has that feature.
What I want to be able to do is to write in one cell a product, say product b, and then in the cell next to it have return another product that has at least four matching features.
How would I go about doing this?
UNTESTED
I take it that unticked boxes for the same feature on two products does not count as a match. Presumably more than two products may have more the same four or more features that match so different answers may be equally valid (I guess #Jerry's point). Hopefully the following describes a way to achieve both a single product in the cell next to your “Write cell” (here M1) while also indicating all qualifying possibilities.
Copy A2:A9 to A12
In B12, copied across and down to K19:
=IF(MATCH($M$1,$A$1:$A$10,0)=ROW()-10,"",1*AND((INDIRECT(CHAR(COLUMN()+64)&MATCH($M$1,$A$1:$A$10,0))=B2),B2<>""))
In N1: =IFERROR(INDEX(A12:A19,MATCH("CF",M12:M19,0)),"")
In M12 and copied down to M19: =IF(SUM(B12:K12)>3,"CF","")

Sum over text values in excel [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have a spreadsheet with excel with a column with over 1000 values that looks as follows:
15hrs
12hrs
34hrs
etc..
Can someone please give me a method on how to sum over these values as I have no clue on how to do this..
Change the A1:A3 to be the actual range:
=SUMPRODUCT(--SUBSTITUTE(A1:A3,"hrs",""))
Take a copy, replace hrs with nothing, then sum the result.
You cannot sum over the text values, but you can get what you're looking to do in a different way (if this'll work for you):
Select the column and go Replace all "Hrs" with blanks "" - In effect, making your text numbers
With the column values still highlighted, go to Format Cells and choose the "Custom" format... Change the format to General"Hrs"
Now you can add the values since they are stored as values, but LOOK like text.
I don't know if this'll work for you, but it should accomplish the task at hand if it does...

EXCEL If function, please guide me...? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions must demonstrate a minimal understanding of the problem being solved. Tell us what you've tried to do, why it didn't work, and how it should work. See also: Stack Overflow question checklist
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I have a table which consists of set of data, say 2,4,6,8,10,12,14,16
I want to create a program in which one cell I input, the other cell I show the output.
For Example:
If I key in a value of 3 in the input cell, the excel will respond something like "there's no 3. THe values suitable are 2 and 4" in the output cell.
If I key in a value of 4 in the input cell, the excel will respond a value of 4 in the output cell.
I'm thinkg of If function. I14 is the input cell. D7 until D14 is the cell where the data locate.
If I14 is the same as any value in the data, the output will show the value. If it is not the same....I'm stuck.
=IF(I14=$D$7:$D$14,$D$7:$D$14,I14)
please help me!
You probably want the Data Validation tool.
Select the cell you want to have this validation, in your case, select cell I27.
Go to the "Data" tab, click the "Data Validation" button and use those options:
The source is where the valid list is, in your case $D$7:$D$14. You can also uncheck the dropdown if you want.
You can then choose the warning you need:

How to format within a large Excel column? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about programming within the scope defined in the help center.
Improve this question
I have an Excel spreadsheet here.
What I dont know is
if you look at the main grid the columns are formatted for space so that the description is larger. Now the part at the bottom left. I really want those 4 columns
'RESIDENT NAME' 'ACCOUNT NUMBER' 'DATE' 'AMOUNT DUE'
I really want them aligned with the rest of the grid but how do i subdivide the large Description column to accomodate this?
Because of your formatting in your question I can't be sure what you want, but if you're trying to line up more than one column with the Description column, just make the Description column a merge of more than one column, then multiple columns will be able to fit underneath it.
You can merge cells by selecting them, then going to Format Cells->Alignment and clicking the Merge cells box.

Resources