473,513 Members | 10,313 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

In Excel taking number or text as 10 in other cell

1 New Member
I want to create a excel sheet in which there will be some column which will get the input in alphabets and numeric values. The last column will be for total. Irrespective of any alphabets and numeric values in the backend the excel should take 10 by default and if the cell is left blank then it should take value as 0. So in the total it should add all cell.

Ex: A B C D Total
SAM 34 yes 30 (10+10+0+10)
OR
JAM 43 45 30 (10+0+10+10)


So, That means if i entered any value in cell it should take 10 by default at back-end and if left blank it should take 0 by default at back-end and should add all cell and give output of all input data in cell. Like above example and attached sheet.
Attached Files
File Type: xlsx EXAMPLE.xlsx (9.9 KB, 333 views)
May 5 '12 #1
5 1414
Luuk
1,047 Recognized Expert Top Contributor
you need an array function for that
(see: http://alturl.com/jhqkc)

In your example, with data in C3:F3, next function:
=SUM(IF(ISBLANK(C3:F3);0;10))
After the function press not only ENTER, but SHIFT+CTRL+ENTER
May 5 '12 #2
Killer42
8,435 Recognized Expert Expert
Just a note: the arguments in the IF function are separated by commas, not semicolons. (Unless that's a user-defined setting in Excel, perhaps).
May 8 '12 #3
Killer42
8,435 Recognized Expert Expert
It might also be a good idea to explore functions like COUNTIF. I think you could use that to count the non-blank cells in a range, then multiply the result by 10.
May 8 '12 #4
Luuk
1,047 Recognized Expert Top Contributor
@Killer42: the semicolon is a country-specific setting.

In the Netherland we have a decimal comma, therefore a comma as separator in a function would not be practical ;)
May 8 '12 #5
Killer42
8,435 Recognized Expert Expert
Thanks, I knew different countries used different decimals and so on, but never knew that the function syntax varied like that.
May 22 '12 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1930
by: mr_ocp | last post by:
Hi friends I need routines to create an excel file with worksheets for each customer and a text file as well for each customer, first worksheet would be a "Summary Report", here is the code that...
3
4157
by: Jefe | last post by:
Hi group I'm trying to implement a console application which work just lie "Dir" instruction in MS-Dos prompt window so I need to display Volume Serial Number and also the free space, how can I...
2
2592
by: Ryan Liu | last post by:
Hi, I need the MouseDown event be trigged everytime when you press mouse in a datagrid (System.Windows.Forms). But seems mouse event will only fire once, and it seems changed to edit mode...
2
4328
by: bienwell | last post by:
Hi all, Do you have any source code to import data from Excel file or text file into database in ASP.NET program ? Please give me your reference if you have. Thanks in advance
0
1805
by: Eric | last post by:
Hi all, First i appoligise for my bad english. For a friend i need to create a script that can read XLS documents. Well that's not the problem anymore... with the code (down here) i've already...
0
1466
by: maccer | last post by:
i need to create some form of macro that will read the information from excel cells and then put them all together in a text box. it is very important that the formating remains consistant between...
6
24519
by: McKirahan | last post by:
I an using ASP to read a database table and generate an HTML table which is save via FSO with a file extension of .xls which opens up in MS-Excel. I am inserting several lines of text into a cell...
2
2886
by: Brian Parker | last post by:
I need to format text in cell in an Excel worksheet and I need to do this using C#. I've seen code that will set the format for the whole cell, but I just need to format one character in that...
3
3016
by: minhtran | last post by:
Hi all Anyone has any idea how to get a Excel header column in VB.NET. Please, help me. Thank you so much in advance
2
9129
by: saritha2008 | last post by:
Hi, As part of transforming one form of xml to another form, i need to do the below mentioned transformation: My Input XML: <rss> <channel> <item> <assignee...
0
7153
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7432
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7094
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5677
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1585
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
452
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.