Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 364001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T13:23:47+00:00 2026-05-12T13:23:47+00:00

I use excel a lot to structure finite state machines. As such I often

  • 0

I use excel a lot to structure finite state machines. As such I often format cells so that I can cut and past entire sections into my C source directly.

Currently I’m having to preprocess one of my code blocks so that I can replace “-” with “_” in my identifiers. Example, in cell I might have

#define Some-preprocessor-name

But I’d like to have:

#define SOME_PREPROCESSOR_NAME

The upper case bit is covered by UPPER(), but the locations of the hyphens is arbitrary as is the number I’d expect to find. Suggestions?

  • 1 1 Answer
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T13:23:47+00:00Added an answer on May 12, 2026 at 1:23 pm

    You need Substitute().

    eg
    Substitute(A1, “-“, “_”)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I don't use Excel very often, but I'm hoping there is a fairly straightforward
In an Excel formula you can use =ISERR(A1) or =ISERROR(A1) In a VBA macro
I have an Excel worksheet that has 30k+ rows. I'd like to cut the
I use Excel 2003 on a Windows 7 Professional setup. In my Personal.xls file,
#!/usr/bin/env perl use warnings; use strict; use Excel::Writer::XLSX; my $workbook = Excel::Writer::XLSX->new( 'perl.xlsx' );
I have a big problem. I use excel auto filter function, at the end
I use VSTO Excel template based solutions frequently. One of the things I like
use C#,want to upload excel file on google doc. bellow syntax use to upload
When Excel determines the axis values it will use to represent your data in
I use OpenXML SDK 2.0 to generate Excel file with large amount of data,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.