Excel Formula Help

MBRGriffin

New Member
Joined
Nov 11, 2014
Messages
17
Hello...I have 3 formulas that I am having trouble getting to do what I want that have been in use for quite some time. Any quick assistance would be very much appreciated!

1- I am trying to get the last populated cell value in a series of non consecutive cells in a row to return. The formula I wrote below works to return the single value (which is all they have been to this point), however, now I need it to accommodate a double digit number. (Note, there will actually be about 25 cells in each row for this formula to look through)

=if(iserr(mid((ad23&aj23&ap23),len(ad23&aj23&ap23),1)),"",mid((ad23&aj23&ap23),LEN(ad23,aj23,ap23),1))

2 - I have a date field that is returning the 1/0/1900 date, which I know how to adjust in the custom cell formatting to show as blank, but I also have a formula in these cells adding 14 days or subtracting 7 days, which then it is no longer considered '0'. how can I make this show as a blank when the date value is actually '0' but my formula is making it return with +14 (b15 is where my +14 is coming from) or -7?

=if($f19="Supplier",if(t19>1,t19-7,""),"") --returns 1/7/1900
=if($j19>0,if(n19="1",0,if(n19="4",0,if(o19>p19,0,max($p19+$b$15,$Q19,R19)))),0) - returns 1/14/1900

3 - I am counting the number of times in a column that 'NIS' is returned.... but I now have instances where the NIS I am clearing in conditional formatting if it is not applicable because it is an internal document but it is still being counted. what do I need to adjust to make this work?
My count if formula is this: =countif($x$19:$x$298,"NIS)
Here Is the formula in the x column: =if($k19=0,0,if($o19=0,NS",if($n19="1","APPROVED",if($n19="2"RESUBMIT",if($n19="3","RESUBMIT",if($n9="4",INFORMATION",""))))))
and my conditional formatting in x column says this: =$I19="Internal" format as white.

Any help is very much appreciated!!!
 
Last edited:

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
For your first problem if you are trying to return a number value from the farthest right cell in a row use the formula below.

For your other problems I could probably help you, if you post some data, I'm just not good enough to look at a formula and figure out the problem.

Excel 2010
ABCDEFGHIJKLM

<tbody>
[TD="align: center"]1[/TD]
[TD="align: right"]158[/TD]
[TD="align: right"]9889[/TD]
[TD="align: right"]9996[/TD]
[TD="align: right"]55[/TD]
[TD="align: right"][/TD]
[TD="align: right"]25[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]987[/TD]
[TD="align: right"][/TD]
[TD="align: right"]25[/TD]
[TD="align: right"][/TD]
[TD="align: right"]2889[/TD]

[TD="align: center"]2[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]3[/TD]
[TD="align: right"]2889[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

</tbody>
Sheet10

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<tbody>[TR="bgcolor: #DAE7F5"]
[TH]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
[TR]
[TH="bgcolor: #DAE7F5"]A3[/TH]
[TD="align: left"]=LOOKUP(9.99999999999999E+307,1:1)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Thank you! For problem one I am actually trying to get the furthest right number value that is populated from a set series of cells (we are tracking when a document gets submitted to our clients and these are the revision numbers for each new submittal that we want to return to our 'current revision' column). So, how can I return the last POPULATED number value in the below series of cells (each new submittal the next cell to the right will be populated). the formula I was using worked, but only with a single digit number (so once we got to revision 10, it would only return the 0)
ad23&aj23&ap23&av23&bb23&bh23&bn23&bt23&bz23&cf23&cl23&cr23&cx23&dd23&dj23&dp23&dv23&eb23&eh23&en23&et23&ez23&ff23&fl23&fr23

Does this make sense?
 
Upvote 0
Did you try Skywriter's solution? It should work. If it does not, post a small sample showing the result you want and the result it produces
 
Upvote 0
But I don't understand where to put all the specific cells in the formula he gave? the cells in the row that i need checked are not consecutive next to each other...
 
Upvote 0
But I don't understand where to put all the specific cells in the formula he gave? the cells in the row that i need checked are not consecutive next to each other...

The formula I gave checks for the farthest right cell in Row 1, the whole row. It doesn't matter how many cells are in the row or whether there are blank cells between the cells with data, it returns the farthest right cell. If that is what you are after the 1:1 in my formula is for row 1, use whatever row number you are checking.

If this is not what you are after you have to understand that by not showing us sample data we are having a hard time understanding what you are after.
 
Upvote 0
ok...sorry...let me post the data to help me explain what I am trying to achieve. So below is the formula I have in col O (this specifically for the highlighted cell o21). The formula works to return the value from the furthest right from my specified cells (both alpha and numeric) but when we get to a rev that is 2 digits it only returns 1digit and we need the '10' to display. (see row 21)

=if(iserr(mid((ap21&av21&bb21),len(ap21&av21&bb21),1)),"",mid((ap21&av21&bb21),LEN(ap21,av21,bb21),1))


[TABLE="width: 939"]
<colgroup><col width="64" style="width: 48pt;"> <col width="52" style="width: 39pt; mso-width-source: userset; mso-width-alt: 1901;"> <col width="72" style="width: 54pt; mso-width-source: userset; mso-width-alt: 2633;"> <col width="40" style="width: 30pt; mso-width-source: userset; mso-width-alt: 1462;"> <col width="72" style="width: 54pt; mso-width-source: userset; mso-width-alt: 2633;" span="2"> <col width="51" style="width: 38pt; mso-width-source: userset; mso-width-alt: 1865;"> <col width="72" style="width: 54pt; mso-width-source: userset; mso-width-alt: 2633;" span="2"> <col width="40" style="width: 30pt; mso-width-source: userset; mso-width-alt: 1462;"> <col width="72" style="width: 54pt; mso-width-source: userset; mso-width-alt: 2633;" span="2"> <col width="51" style="width: 38pt; mso-width-source: userset; mso-width-alt: 1865;"> <col width="72" style="width: 54pt; mso-width-source: userset; mso-width-alt: 2633;" span="2"> <col width="40" style="width: 30pt; mso-width-source: userset; mso-width-alt: 1462;"> <col width="72" style="width: 54pt; mso-width-source: userset; mso-width-alt: 2633;" span="2"> <col width="51" style="width: 38pt; mso-width-source: userset; mso-width-alt: 1865;"> <col width="72" style="width: 54pt; mso-width-source: userset; mso-width-alt: 2633;"> <tbody>[TR]
[TD="width: 64, bgcolor: transparent"][/TD]
[TD="width: 52, bgcolor: transparent"]O
[/TD]
[TD="width: 72, bgcolor: transparent"]AN[/TD]
[TD="width: 40, bgcolor: transparent"]AO[/TD]
[TD="width: 72, bgcolor: transparent"]AP[/TD]
[TD="width: 72, bgcolor: transparent"]AQ[/TD]
[TD="width: 51, bgcolor: transparent"]AR[/TD]
[TD="width: 72, bgcolor: transparent"]AS[/TD]
[TD="width: 72, bgcolor: transparent"]AT[/TD]
[TD="width: 40, bgcolor: transparent"]AU[/TD]
[TD="width: 72, bgcolor: transparent"]AV[/TD]
[TD="width: 72, bgcolor: transparent"]AW[/TD]
[TD="width: 51, bgcolor: transparent"]AX[/TD]
[TD="width: 72, bgcolor: transparent"]AY[/TD]
[TD="width: 72, bgcolor: transparent"]AZ[/TD]
[TD="width: 40, bgcolor: transparent"]BA[/TD]
[TD="width: 72, bgcolor: transparent"]BB[/TD]
[TD="width: 72, bgcolor: transparent"]BC[/TD]
[TD="width: 51, bgcolor: transparent"]BD[/TD]
[TD="width: 72, bgcolor: transparent"]BE[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]18[/TD]
[TD="width: 52, bgcolor: #003150"]Current
Revision
[/TD]
[TD="width: 72, bgcolor: #003150"]Received
from
SUPPLIER
[/TD]
[TD="width: 40, bgcolor: #003150"]Rev.[/TD]
[TD="width: 72, bgcolor: #003150"]Submitted
to
Customer
[/TD]
[TD="width: 72, bgcolor: #003150"]Returned
from
Customer
[/TD]
[TD="width: 51, bgcolor: #003150"]Status[/TD]
[TD="width: 72, bgcolor: #003150"]Mark-Ups
to
SUPPLIER
[/TD]
[TD="width: 72, bgcolor: #003150"]Received
from
SUPPLIER
[/TD]
[TD="width: 40, bgcolor: #003150"]Rev.[/TD]
[TD="width: 72, bgcolor: #003150"]Submitted
to
Customer
[/TD]
[TD="width: 72, bgcolor: #003150"]Returned
from
Customer
[/TD]
[TD="width: 51, bgcolor: #003150"]Status[/TD]
[TD="width: 72, bgcolor: #003150"]Mark-Ups
to
SUPPLIER
[/TD]
[TD="width: 72, bgcolor: #003150"]Received
from
SUPPLIER
[/TD]
[TD="width: 40, bgcolor: #003150"]Rev.[/TD]
[TD="width: 72, bgcolor: #003150"]Submitted
to
Customer
[/TD]
[TD="width: 72, bgcolor: #003150"]Returned
from
Customer
[/TD]
[TD="width: 51, bgcolor: #003150"]Status[/TD]
[TD="width: 72, bgcolor: #003150"]Mark-Ups
to
SUPPLIER
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]19[/TD]
[TD="width: 52, bgcolor: transparent"]B[/TD]
[TD="bgcolor: #DCE6F1"]
[/TD]
[TD="bgcolor: #DCE6F1"]A[/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #B8CCE4"] [/TD]
[TD="bgcolor: #B8CCE4"]B[/TD]
[TD="bgcolor: #B8CCE4"] [/TD]
[TD="bgcolor: #B8CCE4"] [/TD]
[TD="bgcolor: #B8CCE4"] [/TD]
[TD="bgcolor: #B8CCE4"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]20[/TD]
[TD="width: 52, bgcolor: transparent"]1[/TD]
[TD="bgcolor: #DCE6F1"]
[/TD]
[TD="bgcolor: #DCE6F1"]A[/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #B8CCE4"] [/TD]
[TD="bgcolor: #B8CCE4"]B[/TD]
[TD="bgcolor: #B8CCE4"] [/TD]
[TD="bgcolor: #B8CCE4"] [/TD]
[TD="bgcolor: #B8CCE4"] [/TD]
[TD="bgcolor: #B8CCE4"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"]1[/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]21[/TD]
[TD="width: 52, bgcolor: yellow"]0[/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"]10[/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #B8CCE4"] [/TD]
[TD="bgcolor: #B8CCE4"] [/TD]
[TD="bgcolor: #B8CCE4"] [/TD]
[TD="bgcolor: #B8CCE4"] [/TD]
[TD="bgcolor: #B8CCE4"] [/TD]
[TD="bgcolor: #B8CCE4"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]22[/TD]
[TD="width: 52, bgcolor: transparent"]2[/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"]0[/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #B8CCE4"] [/TD]
[TD="bgcolor: #B8CCE4"]1[/TD]
[TD="bgcolor: #B8CCE4"] [/TD]
[TD="bgcolor: #B8CCE4"] [/TD]
[TD="bgcolor: #B8CCE4"] [/TD]
[TD="bgcolor: #B8CCE4"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"]2[/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[TD="bgcolor: #DCE6F1"] [/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Im really sorry you guys...this is the formula...not the one above. :( I appreciate all your help!!

=if(iserr(mid((ao21&au21&ba21),len(ao21&au21&ba21),1)),"",mid((ao21&au21&ba21),LEN(ao21,au21,ba21),1))
 
Upvote 0
Try this.

If you need to change the cell references to reflect where your data begins and ends, go ahead.

Code:
=LOOKUP(2,1/(LEN(AN21:BB21)>0),AN1:BB21)
 
Upvote 0
well shucks bruce... I copied that formula directly into O21 and it didn't work. I do appreciate you taking the time to look into this tho!
 
Upvote 0

Forum statistics

Threads
1,223,247
Messages
6,171,007
Members
452,374
Latest member
keccles

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