thinksmart12
New Member
- Joined
- Jan 14, 2016
- Messages
- 2
Hey everyone,
I am trying to create a function that will extract a number in the given string and print that number in the cell. I had this issue in the past and found the solution on these forums using either LOOKUP or VLOOKUP, but stupid me cannot find that post again.
I have data that looks like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD][TABLE="width: 569"]
<tbody>[TR]
[TD="class: xl67, width: 569"]Lab 5 because seeing the titration first hand helped me to understand the equivalence point.[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD][TABLE="width: 569"]
<tbody>[TR]
[TD="class: xl66, width: 569"]Experiment 12 because it gave me a huge understanding of how to use the gas laws and apply it to real situations.[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD][TABLE="width: 569"]
<tbody>[TR]
[TD="class: xl66, width: 569"]Lab 10[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD][TABLE="width: 569"]
<tbody>[TR]
[TD="class: xl67, width: 569"]The last lab report, lab 12 required me to use a lot of things that we've learned throughout the semester and really made some things make more sense.[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD][TABLE="width: 569"]
<tbody>[TR]
[TD="class: xl66, width: 569"]Lab 10: Qualitative Determination of Selected Metal Cations. This lab supported the course content because it gave me a "real world" relation to what was being studied.[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD][TABLE="width: 569"]
<tbody>[TR]
[TD="class: xl66, width: 569"]The calorimetry lab really helped my understanding of the use of the different equations and the types of problems I would encounter on the test.[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]
What I want to first accomplish, is to put some formula and drag it down in column B, so that B gets populated with the numbers from column A. I have hundreds of rows where there is some number given in column A. I would like to drag down over the hundreds of rows and have it output the corresponding number from column A into column B.
If you look at the last row in italics, there is no number in column A. For these rows, I would like to have a formula that searches for certain keywords (in this case, the word "calorimetry") and output a number based on that. If the keyword is not present, then skip it. I can then modify this formula to search for different words and output different numbers based on that.
If anyone can help with this, that would be great! Like I said, I think the solution to this was posted in this forum before, but after extensive searching I cannot find it.
Thank you!
I am trying to create a function that will extract a number in the given string and print that number in the cell. I had this issue in the past and found the solution on these forums using either LOOKUP or VLOOKUP, but stupid me cannot find that post again.
I have data that looks like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD][TABLE="width: 569"]
<tbody>[TR]
[TD="class: xl67, width: 569"]Lab 5 because seeing the titration first hand helped me to understand the equivalence point.[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD][TABLE="width: 569"]
<tbody>[TR]
[TD="class: xl66, width: 569"]Experiment 12 because it gave me a huge understanding of how to use the gas laws and apply it to real situations.[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD][TABLE="width: 569"]
<tbody>[TR]
[TD="class: xl66, width: 569"]Lab 10[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD][TABLE="width: 569"]
<tbody>[TR]
[TD="class: xl67, width: 569"]The last lab report, lab 12 required me to use a lot of things that we've learned throughout the semester and really made some things make more sense.[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD][TABLE="width: 569"]
<tbody>[TR]
[TD="class: xl66, width: 569"]Lab 10: Qualitative Determination of Selected Metal Cations. This lab supported the course content because it gave me a "real world" relation to what was being studied.[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD][TABLE="width: 569"]
<tbody>[TR]
[TD="class: xl66, width: 569"]The calorimetry lab really helped my understanding of the use of the different equations and the types of problems I would encounter on the test.[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]
What I want to first accomplish, is to put some formula and drag it down in column B, so that B gets populated with the numbers from column A. I have hundreds of rows where there is some number given in column A. I would like to drag down over the hundreds of rows and have it output the corresponding number from column A into column B.
If you look at the last row in italics, there is no number in column A. For these rows, I would like to have a formula that searches for certain keywords (in this case, the word "calorimetry") and output a number based on that. If the keyword is not present, then skip it. I can then modify this formula to search for different words and output different numbers based on that.
If anyone can help with this, that would be great! Like I said, I think the solution to this was posted in this forum before, but after extensive searching I cannot find it.
Thank you!