Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-03-2018, 01:39 PM
Marcia's Avatar
Marcia Marcia is offline Return Multiple values from data except blanks with two criteria Windows 7 32bit Return Multiple values from data except blanks with two criteria Office 2007
Expert
Return Multiple values from data except blanks with two criteria
 
Join Date: May 2018
Location: Philippines
Posts: 527
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default Return Multiple values from data except blanks with two criteria

I have a problem extracting multiple data from a table that contains blanks. My array formula is
=IFERROR(INDEX(Transaction_No.,SMALL(IF(Status=B$1 5,ROW(Transaction_No.)-ROW(C$3)+1),ROWS(C$3:C3))),"")
Please help me in:
1. When the formula reaches a blank cell in the lookup range, there is also a blank row in the resulting table.There should be no blank rows.
2. In another sheet, I need to extract data with two criteria. How could I tweak this formula to come up with the correct list?


3. In column I of the source data, I would like a formula to automate the assigning of numbers to approved transactions starting from number 2018-1. In between the transactions are data that awaits processing.
Sample transactions attached for clarity
Attached Files
File Type: xlsx Sample Transactions.xlsx (18.1 KB, 8 views)

Last edited by Marcia; 09-03-2018 at 02:25 PM. Reason: additional information
Reply With Quote
  #2  
Old 09-03-2018, 04:07 PM
jeffreybrown jeffreybrown is offline Return Multiple values from data except blanks with two criteria Windows Vista Return Multiple values from data except blanks with two criteria Office 2007
Expert
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

How about something like this. I would suggest you create an unique ID field which is in column L.

1. I'm guessing you are saying, if the Transaction No. is blank, then that row should not be returned. The formula is in E16:E19 and everything to the left pulls from the unique ID in E16:E19.

2. You didn't say what the two criteria are.

3. Look in column K. Along with the formula I used a custom format. The formual returns the rank based on the Date Approved and the custom format fills in the 2018-
Attached Files
File Type: xlsx Sample Transactions (1).xlsx (13.6 KB, 9 views)
Reply With Quote
  #3  
Old 09-05-2018, 11:41 AM
Marcia's Avatar
Marcia Marcia is offline Return Multiple values from data except blanks with two criteria Windows 7 32bit Return Multiple values from data except blanks with two criteria Office 2007
Expert
Return Multiple values from data except blanks with two criteria
 
Join Date: May 2018
Location: Philippines
Posts: 527
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default

Thank you JeffryBrown. Column K was the clincher. Re the two criteria, I just added another IF in the formula that you suggested. But the sequence numbering in column K is quite odd, if I type the same date on two or more rows, the RANK formula throws serial numbers for these same rows with the largest number on the first row.. Like this...

Approval Date------------Number--------Could this be arranged into
Jan 3----------------------2018-04-------2018-02
Jan 2----------------------2018-01-------2018-01
Jan 3----------------------2018-03-------2018-03
Jan 3----------------------2018-02-------2018-04
Jan 5----------------------2018-06-------2018-05
Jan 5----------------------2018-05-------2018-06

Is there a way for the RANK formula to start the lower sequence number from the first row of the same dates?
Reply With Quote
  #4  
Old 09-05-2018, 02:48 PM
jeffreybrown jeffreybrown is offline Return Multiple values from data except blanks with two criteria Windows Vista Return Multiple values from data except blanks with two criteria Office 2007
Expert
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

I'm sorry Marcia. I can't think of a way to do this, but I'll keep plugging along for a solution. In the meantime, here is a good resource for ranking.

http://www.cpearson.com/Excel/rank.aspx
Reply With Quote
  #5  
Old 09-05-2018, 10:59 PM
ArviLaanemets ArviLaanemets is offline Return Multiple values from data except blanks with two criteria Windows 8 Return Multiple values from data except blanks with two criteria Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

Here you go!
Attached Files
File Type: xlsx Transactions.xlsx (22.6 KB, 10 views)
Reply With Quote
  #6  
Old 09-06-2018, 01:58 PM
Marcia's Avatar
Marcia Marcia is offline Return Multiple values from data except blanks with two criteria Windows 7 32bit Return Multiple values from data except blanks with two criteria Office 2007
Expert
Return Multiple values from data except blanks with two criteria
 
Join Date: May 2018
Location: Philippines
Posts: 527
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default

Big big thanks to both of you Jeffrey and ArviLaanamets. I'll keep on tweaking your formulas to accommodate more than one criteria until I get the correct result. Nested formula boggles me but I am getting there.
Reply With Quote
  #7  
Old 09-06-2018, 10:49 PM
ArviLaanemets ArviLaanemets is offline Return Multiple values from data except blanks with two criteria Windows 8 Return Multiple values from data except blanks with two criteria Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

I missed that you did want the formula for SequenceNo too!

I added a formula, but the problem with SequenceNo calculated using formula is, it will be different whenever you sort your table, or add a new entry using Insert Row.

When you want to avoid this problem, you need a hidden sheet with table where every column represents a year. The table has a single row of data, where for every year next available SequenceNo is calculated (Max SequenceNo for given year + 1 to counting part of it). I.e. when you have a column for 2017, and there is no approved transactions registered or SequenceNo is not determined for them, then the next available SequenceNo will be "2017-01". When you have registered SequenceNo "2018-08", then in column 2018 the next available sequenceNo will be "2018-09", etc.

Now you define a dynamic named range - e.g. lSequenceNo - which returns a cell from hidden table column matching with year of transaction approval date on active row in transactions table. And you use this named range as source for Data Validation List in SequenceNo column. Now you can assign an unique sequence number to every approved entry in transactions table simply selecting it from Data Validation List - there will be always a single choice. I leave it for you to try out as an exercise :-)
Attached Files
File Type: xlsx Transactions.xlsx (22.9 KB, 10 views)
Reply With Quote
  #8  
Old 09-07-2018, 12:38 AM
Marcia's Avatar
Marcia Marcia is offline Return Multiple values from data except blanks with two criteria Windows 7 32bit Return Multiple values from data except blanks with two criteria Office 2007
Expert
Return Multiple values from data except blanks with two criteria
 
Join Date: May 2018
Location: Philippines
Posts: 527
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default

Thank you thank you for the added formula of sequence numbering. In fact I was thinking about the change in year of approval and you gave me a starting point to explore further.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Want to return a value from my pricing table into my raw data sheet given criteria in the data sheet mcronin Excel 1 05-09-2016 09:43 AM
Return Multiple values from data except blanks with two criteria How to return a value in a data table using vertical and horizontal criteria oswald Excel 1 02-08-2015 02:01 AM
Return Multiple values from data except blanks with two criteria using if and compare with multiple criteria and ranges of values bill3kradio Mail Merge 7 11-17-2014 01:06 PM
Return Multiple values from data except blanks with two criteria I need to add multiple values based on multiple criteria in a cell not sure what to do AUHAMM Excel 3 10-27-2014 09:11 PM
Data analysis with four conditions then copies certain values that meets the criteria AieMPhy Excel 0 04-24-2014 08:41 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:40 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft