Need formula that will read the first number only

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,446
Office Version
  1. 2007
Platform
  1. Windows
Hope someone can help me.

I need couple formulas, the reason I ask them in the same tread is because they work for the same sheet and it would be harder to understand if I would ask separately !!!.

First one :
I have in

A1: 14
B1: 26
C1: 3

or

A1: 2
B1: 17
C1: 8

and I need in D1 a formula that will put those 3 numbers together with 1 space in between ? Which would give.

D1: 14 26 3
D1: 2 17 8

Then here is my display.


Excel Workbook
ABCDEFGHIJKLMN
1123456789101112
2
3
417293319108145
521729931910814
632172293191081
743317722319108
854431177233910
96554444472239
107665555547723
118886666654472
129998888865557
13101010101010101086666
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C51. / Formula is =AND(C4<>0,C$4<=D$4,C4=D$4)Abc


Second question.

Can the formulas for this set up be change to work exactly the same way BUT the formula would work using the first number ONLY from that whole number ???

Here with this example I have in A1: 14 B1: 26 C1: 3 which become in D1: 14 26 3, I need the formula in C5 to work with a number show in D1 as example and just using the number 14 and for the second example the number 2.

And the same with the CF, the formula will use the first number only too ?

I really hope that is possible, that would help me so much and have all my data display in one single sheet.

That look like a good challenge to me, but you guys are genius.

Thank you in advance.

Serge.
 
Last edited:

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
For first part use:
Code:
=A1 & " " & B1 & " " & C1
 
Last edited:
Upvote 0
for the first part =A1&" "&B1&" "&C1
for the second =LEFT(D1,FIND(" ",D1))

i hope this helps
 
Upvote 0
Thank you JackDanIce,

That works for the first part.
 
Upvote 0
drl44, thank for the help but,

I need this formula :

=IF(C$4="",0,IF(COUNTIF(C$4:C4,B4),B5,B4))

which is in C5 to be change to work with the first number of 14 26 3 which is in one cell ( for this example ).
Thank you.
 
Upvote 0
I need some clarification so what I think you are asking is with your table you want in cell C5 you want the values of C5,D5,E5 est.. with spaces in between each value?
 
Upvote 0
drl44,

No that I have it, what I need is for the formula in C5 to calculate what this cell is housing but only with the first number.
 
Upvote 0
sorry but i dont understand do you want to get the the values of the table with out the table?
 
Upvote 0
I just want to say that I'm very sorry.

I just realized that, what I'm asking would work only at 66% of what I actually need, so you don't need to answer to this post anymore.

I want to apologized for my mistake.
 
Upvote 0

Forum statistics

Threads
1,224,588
Messages
6,179,743
Members
452,940
Latest member
rootytrip

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top