Obtaining Value From Index/Match Cell

JPARKHURST

Board Regular
Joined
Oct 25, 2016
Messages
151
I'm sorry if this has been covered before, I have looked through and searched and was not able to find it [yet]. It seems to me this should be pretty obvious, but I must not be doing something correctly.

I have a cell which uses a job # to obtain the balance left on the job. This cell is the result of an index match which obtains the job qty from a dispatch sheet.

My problem comes when I try to work with the value fetched by the cell. In this particular case, my cell has pulled in "99". When I attempt to work with this value, I am not able. I have tried everything other than pasting the value into the cell, as I want this process to be more automated than that (hence the index and match). But if I, say, try to add 1 to the cell, it results in "0". If I try to divide this number, I get a "0". What I am particularly wanting to do is to compare this value to an equation and have it let me know what the results are.


[TABLE="width: 1124"]
<colgroup><col><col><col><col span="2"><col span="2"><col span="8"></colgroup><tbody>[TR]
[TD]A
JOB[/TD]
[TD]B
DUE[/TD]
[TD]C
DESCRIPTION[/TD]
[TD]D
balance[/TD]
[TD]E
Test[/TD]
[TD]F
A Start[/TD]
[TD]G
A End[/TD]
[TD]H
Time[/TD]
[TD]I
Rate[/TD]
[TD]J
Weekly [/TD]
[TD]K
25-Oct[/TD]
[TD]L
26-Oct[/TD]
[TD]M
27-Oct[/TD]
[TD]N
28-Oct[/TD]
[TD]O
29-Oct[/TD]
[/TR]
[TR]
[TD]66380[/TD]
[TD]10/19[/TD]
[TD]10 DWR 52IN CABINET BLACK[/TD]
[TD]99[/TD]
[TD]0 (e3+1)[/TD]
[TD]10/24/16[/TD]
[TD]10/29/16[/TD]
[TD]6[/TD]
[TD]660[/TD]
[TD]3960[/TD]
[TD]0[/TD]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


BIG PICTURE:
I am attempting to create a schedule which takes in our dispatch list and automatically (or semi) distributes new jobs across multiple shifts. This is my second or third trial of ideas, so I'm not set on anything, just trying to get a few of the basics down. This problem is particularly frustrating as it seems as if i'm missing something completely obvious.

TIA,

Jon
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
The data you are returning is probably text that just looks like a number. try adding -- in front of your formula...
=--your-formula
 
Upvote 0
The data you are returning is probably text that just looks like a number. try adding -- in front of your formula...
=--your-formula

Hmmm, no go.

=IFERROR(INDEX(Job_Dispatch!$H$2:$H$500,MATCH($C3,Job_Dispatch!$A$2:$A$500,0)),"")

to

=--IFERROR(INDEX(Job_Dispatch!$H$2:$H$500,MATCH($C3,Job_Dispatch!$A$2:$A$500,0)),"")

Results in "99" disappearing to a 0.

I have also tried int(), text(,"numeral"), etc. without success.

However, your suggestion may be correct in that I am showing the 'value' on the right side of the cell, though that may have been from an alignment I did.

isnumber(), istext(), both also result in a "0".

Thanks for the help, though, much appreciated.
 
Upvote 0
Wow. STUPID mistake. As I said, this was one of several version I was looking at - format, logic, etc. When I changed this one up, I had neglected to change my cell assignment. I can't believe it even kep the original value.

I think I have it working now. I'll check in the morning, though, after I've had some rest and coffee.
 
Upvote 0
=--IFERROR(INDEX(Job_Dispatch!$H$2:$H$500,MATCH($C3,Job_Dispatch!$A$2:$A$500,0)),"")

Not quite...
=IFERROR(--INDEX(Job_Dispatch!$H$2:$H$500,MATCH($C3,Job_Dispatch!$A$2:$A$500,0)),"")

isnumber(), istext(), both also result in a "0".
If used correctly, isnumber() and istext() should return TRUE or FALSE, not any value...
=isnumber(A1)
where A1 would be the cell you are testing
 
Upvote 0
Thank you for correcting my syntax on the --. what exactly does this do? I tried to search for it, but wasn't very successful.

Understood on the isnum/text. I'm not sure why it would return a "0". I often use this as a check as our part numbers are alpha numeric. It seems to me that it should have just returned a 'false', but instead I got a '0'. Then again, I'm not sure exactly how the cell was keeping its value, since all of the references were jacked up.

Thanks again for your help, I'm sure I'll be back here before long. This worksheet is proving to be more than a little bit challenging. (and yes, I'm probably borderline misusing excel, but it's what we have available).
 
Upvote 0
-- (double unary/double negative) is a way to convert a text number to a real number.

Applying any math operator to a text number will convert it...-- or *1 or +0
 
Upvote 0

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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