How Can I Manipulate Numbers in Excel's General Number Format?

Click For Summary

Discussion Overview

The discussion revolves around manipulating a specific format of numbers in Excel, particularly focusing on a column formatted as ab:cd:ef:ghy. Participants explore methods to increment the last digit (y) under certain conditions while maintaining the original format.

Discussion Character

  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant describes a need to change the last digit (y) in a number formatted as ab:cd:ef:ghy to y+1, while keeping the overall format intact.
  • Another participant suggests using the Excel function "=MID(A1,12,1)" to extract the digit y, followed by incrementing it and concatenating it back into the original format using other functions.
  • A third participant expresses appreciation for the solution provided, indicating it was particularly effective.
  • A fourth participant humorously acknowledges their own success in similar situations, suggesting a friendly competition among peers regarding Excel skills.

Areas of Agreement / Disagreement

Participants appear to agree on the method proposed for manipulating the number format, but there is no explicit consensus on the best approach or any alternative methods.

Contextual Notes

The discussion does not address potential limitations of the proposed methods, such as dependencies on specific cell formats or the handling of errors in the data.

Who May Find This Useful

This discussion may be useful for individuals looking to manipulate numerical data in Excel, particularly those working with custom formats or needing to perform conditional operations on specific digits within a string.

Jobrag
Messages
551
Reaction score
28
I have an csv file that has a column of numbers in the form ab:cd:ef:ghy The cell's number format is general, I want to be able (if other criteria are met) to change y into y+1. The final column must again have the form ab:cd:ef:ghy and the number format general, can anyone out there give me an idea how to manipulate numbers in this format.
 
Computer science news on Phys.org
What about "=MID(A1,12,1)"?
This picks out "y",
Then you can add one, perhaps after using "=N(value)".
Finally you can concatenate everything with "=LEFT(A1,11)&C1".
 
I like Serena
Spot on, thank you, you have just out geeked our office resident geek who will now have to buy much beer, thanks again.
 
I have already geeked out my own office resident geeks.
I'm only glad that other people are willing to buy my beer! :smile:

Say, did you already vote?
https://www.physicsforums.com/forumdisplay.php?f=213
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
Replies
9
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
19K
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 16 ·
Replies
16
Views
2K
Replies
7
Views
3K