Formulas don't work when looking at another formula result

rplohocky

Active Member
Joined
Sep 25, 2005
Messages
292
Office Version
  1. 365
Platform
  1. Windows
Hello,
I haven't ever seen this issue before. I have a formula in cell J2 that looks at cell D2 to determine what J2 should display. The formula in J2 only works if I manually type in a number in cell D2, when I use a formula to acquire that number, cell J2 goes blank. I have tried 3 different formulas to see if its the formula and the format is set to General. Here are the formulas I used in D2:
Excel Formula:
=LEFT(A2, MATCH(FALSE, ISNUMBER(MID(A2, ROW(INDIRECT("1:"&LEN(A2)+1)), 1) *1), 0) -1)
Excel Formula:
[I]=LEFT(A1,(FIND(" ",A1,1)-1))[/I]
Excel Formula:
=LEFT(B2,2)
These formulas are supposed to extract the numbers before the text ( 12 Count--CAB6 118), in this example it would be 12.

Here is the formula I'm using in cell J2:
Excel Formula:
=IF(AND(D2>11,D2<145),25,IF(D2=288,30,""))

What am I missing?
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Your formulas will return a String in D2, and the string "12" is different than the value 12
Try this, in J2:
Excel Formula:
=IF(AND(--D2>11,--D2<145),25,IF(--D2=288,30,""))
 
Upvote 0
You can add 0 to the formula in D2 to convert it from text into a number like
Excel Formula:
=LEFT(A1,(FIND(" ",A1,1)-1))+0
 
Upvote 0
Solution
You can add 0 to the formula in D2 to convert it from text into a number like
Excel Formula:
=LEFT(A1,(FIND(" ",A1,1)-1))+0
Although Anthony47 had an option that worked as well, I thought Fluff was the one I am used to and decided to use. Thank you both for your help!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,734
Messages
6,126,543
Members
449,316
Latest member
sravya

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